Google Product Forums

Getting 2 visits for every 1 to all pages.

man12 Jun 16, 2012 2:21 AM
Posted in group: Google Analytics

Categories: Asynchronous Tracking Code Snippet :

My issue is that every person that visits my all pages is getting counted as 2 visits. This is obviously incorrect but I am not sure how to fix it. I have already tried a few different options outlined below but none have fully succeeded.

As well as in eCommerce section, it is counting as double transaction.

This is my GA tracking code:


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26549132-1']);
  _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>


Kindly suggest me any proper solution.

Thanks