html - Cross-Domain iFrame Tracking with Google Analytics -
i have site (rails 3.2) displays 3rd party news articles within iframe. 1 page contains 1 iframe. have google analytics setup. use segment.io. tracking script in head section of container page.
we have no affiliation 3rd party news sites. wanted check these 3rd party sites still receive analytics data own analytics platforms, if page viewed in browser , not in iframe. 1 view site , 1 view 3rd party site. correct?
i have seen lots of questions seem refer both parent , iframe site having same owner. wanted ask more specific question. forgive me if has been answered before.
the iframe not @ affected tracking in container page. affect tracking in iframe need implement code in 3rd party site apparently not do.
this isn't specific google analytics, there kinds of safeguards in browser prevent javascript in container affecting framed site (for completeness sake, of course can still pass url parameters, if framed site badly programmed cross-site scripting possible - that's different thing accessing framed page javascript).
so not need special, analytics not interfering tracking default thing.
Comments
Post a Comment