Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

google analystics plugin install

soosoo New
edited June 2013 in Vanilla 2.0 - 2.8

I've installed this plugin (http://vanillaforums.org/addon/googleanalytics-plugin) and then put the TrakerId in dashboard.
After enabling this, I cannot see any change or google analystics.
I just check this plugin in dashboard's plugin and was enabled.
How can I user this plugin? Should I code something in forum?
Please let me know.
Thanks.

Comments

  • TamaTama ✭✭✭
    edited June 2013

    Add this to the bottom of your "default.master.tpl" file in /views of your theme folder after the foot class

    {LITERAL}
     <!-- GA -->
      <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', 'TRACKINGCODE', 'domain.tld');
        ga('send', 'pageview');
    
      </script>
    {/LITERAL}
    

    There was an error rendering this rich post.

  • Thank you for your reply. I added your code as you said. Where can I check changing of this? After input the code, i dont' know what is changed. Please help me. Thanks.

  • TamaTama ✭✭✭

    @soo said:
    Thank you for your reply. I added your code as you said. Where can I check changing of this? After input the code, i dont' know what is changed. Please help me. Thanks.

    Go to your google analytics control panel, to test if the code is being received on their end . Make sure you change "domain.tld" to your hostname and change "TRACKING CODE" to your tracking code, it's on the first page of the admin panel and starts with "UA".

    There was an error rendering this rich post.

Sign In or Register to comment.