• Resolved wrs223

    (@wrs223)


    Hi,

    Unfortunately my GA tracking code is not working. I have contacted Google and they have advised I need to change this code :

    <script type="text/javascript" >
    				window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    				ga('create', 'UA-57752802-6', { 'cookieDomain': 'www.surreysellers.com' } );
    				// Plugins
    				
    				ga('send', 'pageview');
    			</script>
    			<script async src="https://www.google-analytics.com/analytics.js"></script>

    With the following code :

    <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','https://www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-57752802-6', 'auto');
      ga('send', 'pageview');
    
    </script>

    How do I do this within your plug in? Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    What specifically isn’t working?

    Thread Starter wrs223

    (@wrs223)

    No traffic / reports from google analytics. My tracking code is showing as missing. How do I replace the scripts mentioned in my post above within your plug in?

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    At the moment there’s no way to do that.
    There’s no reason why the tracking code we provide wouldn’t work. It’s perfectly valid.

    Thread Starter wrs223

    (@wrs223)

    Well it’s not working? I am only going by what Google customer support advised.

    If the current code and tracking code (verified) is valid how can I get GA to see my traffic?

    Google tag assistant states error to be “no HTTP response detected” if that helps diagnose this issue? Thanks

    Thread Starter wrs223

    (@wrs223)

    I don’t know why my post has been marked as resolved.

    IT HAS but not by the plugin developer!

    For the benefit of others with this issue…After another lengthy call with Google the issue was having the website URL entered in the Tracking Domain settings of this All In One SEO plugin (bug?). Remove the URL in the Tracking Domain box and GA will work.

    • This reply was modified 7 years, 4 months ago by wrs223.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google Analytics Not Working’ is closed to new replies.