Re: Domain Aliases and Google Analytics

Anonymous
Not applicable

Domain Aliases and Google Analytics

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?
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Domain Aliases and Google Analytics

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>
Anonymous
Not applicable

Re: Domain Aliases and Google Analytics

Doesn't look like we do.  I will try that.  Thanks!