Pass Google Analytics Data into iFrame (we control both the domains) -


currently have page laid out this:

page on domain contains iframe domain b inside it.

these both our domains , using same google tag manager/google analytics code on both domains. how track traffic data iframe parent page, not display "direct" , can see correct information.

it important me able see parent url hosting iframe.

i not think duplicate question because control both domains.

thanks!

i suggest adding parent page url querystring embedded iframe. if iframe url current "http://myiframedomain.com/page1.html" become "http://myiframedomain.com/page1.html?embeddedin=http%3a%2f%2fmyparentdomain.com%2fpagewithiframe.html"

on pages within iframe read data either server side code or javascript , pass analytics.

in order set referrer manually in ga, use _gaq.push(['_setreferreroverride','http://myparentdomain.com/pagewithiframe.html']);

for more on manually controlling referrers ga, see https://developers.google.com/analytics/devguides/collection/gajs/methods/gajsapicampaigntracking#_gat.ga_tracker_._setreferreroverride


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -