Does setting document.domain via script interfere with Google Analytics?
Posted
by
Seth Petry-Johnson
on Pro Webmasters
See other posts from Pro Webmasters
or by Seth Petry-Johnson
Published on 2010-11-05T04:01:24Z
Indexed on
2011/01/05
16:59 UTC
Read the original article
Hit count: 226
google-analytics
I have a site, www.example.com
, that displays some secure content from forms.example.com
in iframes. To enable cross-frame navigation, pages on both sites use JavaScript to set the document.domain
to just "example.com".
I am using Google Analytics on www.example.com, but the GA site is not showing any data. It indicates that the tracking code is found (the status icon is a green checkmark), but no data is reported.
The GA profile lists the website as "www.example.com".
Is this a supported scenario? Is my script interfering with the GA code in some way?
© Pro Webmasters or respective owner