• Resolved owenprescott

    (@owenprescott)


    I’m having trouble getting Universal Analytics to work on two of my sites, the tags do fire during debug and I believe they are also now published correctly.

    Site 01: https://www.owenprescott.com/
    This site seems to have two analyics.js codes however your plugin is the only universal plugin now active.
    – – –

    src="https://www.google-analytics.com/analytics.js
    src="//www.googletagmanager.com/gtm.js?id=GTM-XXXXXX
    src="//www.google-analytics.com/analytics.js

    – – –

    Site 02: https://dsgnstorm.com/
    This site has one analytics.js however this does not work either.

    The tags fire on both sites during debug and the tags as set to fire on all pages. Any ideas on how to solve this? I should note that the analytics still seems work work in classic view but if I switch to universal view neither provide any stats.

    https://www.ads-software.com/plugins/duracelltomi-google-tag-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Owen,

    I was looking at your first site and as far as I can see you included a Universal tag inside your GTM container but this UA tag is also either hardcoded or injected through a plugin in your template.

    </div><!--/footer-outer-->
    
    </div> <!--/ajax-content-wrap-->
    
    	<a id="to-top"><i class="icon-angle-up"></i></a>
    
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-36254350-1', 'auto');
      ga('send', 'pageview');
    
    </script>

    You should remove this tag from your template.

    On your second site the plugin ‘Google Universal Analytics for WordPress v2.3.4’ is also active, you should deactivate it in case you implemented Universal Analytics inside your GTM container.

    Thread Starter owenprescott

    (@owenprescott)

    Whoops sorry I think I re-enabled those after I was having the issues. The plugins etc should all not be removed. I will wait 24hr to see if any data is picked up but none so far. Thanks for taking a look.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate Universal Analytics Tags?’ is closed to new replies.