Domain Aliases and Google Analytics | Community
Skip to main content
October 17, 2013
Question

Domain Aliases and Google Analytics

  • October 17, 2013
  • 2 replies
  • 1408 views
Hi :)

We have several different domain aliases set up in our Marketo instance.  I just noticed that visits to any Marketo landing pages are not always showing up in the correct Google Analytics account.  Has anyone experienced this, and is there any way to prevent this from occuring?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

October 17, 2013
Do you have cross domain tracking setup for your GA account?

https://support.google.com/analytics/answer/1033876?hl=en

C
ode should appear as

<script type="text/javascript">
 
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-#######']);
  _gaq.push(['_setDomainName', 'domain.com']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
</script>
October 18, 2013
Doesn't look like we do.  I will try that.  Thanks!