MVT combinations in GA reports


/ Published in: JavaScript
Save to your folder(s)

Replace default GA snippet with this one


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  3. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  4. </script>
  5.  
  6. <script type="text/javascript">
  7. if (utmx('combination') != undefined) {
  8. var l = document.location, s = l.search;
  9. s = s + (s.length ? '&' : '?') + 'combination=' + utmx('combination');
  10. var pageTracker = _gat._getTracker("UA-XXXXXXXX-1");
  11. pageTracker._trackPageview(l.pathname + s);
  12. }
  13. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.