google analytics tracking on iframe

吃可爱长大的小学妹 提交于 2019-12-05 05:18:56

at face value, there's no reason it shouldn't work. But GA will track based on the iframe URL, not the parent URL, so if the iframe is hosted on some other domain, you may have problems, depending on your settings within GA. Check to make sure you are using the right account #. Check to make sure you don't have any profile filters (such as an 'include only xyx.com' domain) or anything else in your settings that exclude domains, etc..

Also note that if the iframe is on a different domain, you're going to run into issues with tracking in general as far as session and visit(or) metrics. In order to get around this, you will need to implement additional cross-domain tracking. Not having this would not cause NO data to show up, so this in and of itself isn't the root issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!