Announcement

Collapse
No announcement yet.

Google Analytics showing no data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Glenn Vergara
    replied
    This is a common mistake from users who didn't notice in the note in AdminCP that script tags should not be included. And in some cases they are not aware that it's broken. The note should be probably be in red font or have a check in the template before inserting the code to programmatically check if script tags exist. If yes, do not include them, otherwise, include them.

    Leave a comment:


  • openminded790
    replied
    Thanks Mark, seems to be working now!

    Leave a comment:


  • Mark.B
    replied
    Yes, remove the two script tags.

    Leave a comment:


  • openminded790
    replied
    I'm pasting in this,

    <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-79203135-1', 'auto');
    ga('send', 'pageview');

    </script>

    So I assume I paste in this?,

    (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-79203135-1', 'auto');
    ga('send', 'pageview');

    Thank you for your response Mark

    Leave a comment:


  • Mark.B
    replied
    What is the exact code you are pasting in?

    Remember when you enter the code in the admincp, you need to remove the opening and closing script tags.

    Leave a comment:


  • openminded790
    started a topic Google Analytics showing no data

    Google Analytics showing no data

    Hey all,

    I added my tracking code, <script>.... in the 'google analytics' tracking window under my vbulletin options.

    I thought this was the right thing to do but my GA is showing no data.

    I've since put the ID code, (it's like 10 letters/numbers), hoping this will work.

    Is it the right thing to do?

Related Topics

Collapse

Working...
X