Domain Aliases and Google Analytics | Adobe Higher Education
Skip to main content
October 17, 2013
Frage

Domain Aliases and Google Analytics

  • October 17, 2013
  • 2 Antworten
  • 1408 Ansichten
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?
Dieses Thema wurde für Antworten geschlossen.

2 Antworten

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!