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

Where to put Google Analytics code in Vanilla 2

RaizeRaize vancouver ✭✭
edited July 2010 in Vanilla 2.0 - 2.8
Anyone know a good place to put my analytics code?

P.S. The search function on this forum really needs some work, it would help avoid a lot of dupe questions
Tagged:

Comments

  • phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP
    Hi Raize,

    I put the GA-code in the head of the file:
    ~/themes/yourTheme/views/default.master.php

    If you look there, you won't find the file, so first you have to copy it from here:
    ~/applications/dashboard/views/default.master.php

    Hope this helps you and others.

    Greetz
    p*
    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
  • RaizeRaize vancouver ✭✭
    That was actually very helpful...thanks
  • Yep, same here, too bad I was too late to answer. ^^
  • RaizeRaize vancouver ✭✭
    bump for anyone who has recently installed V2... google analytics is a must!
  • edited September 2010
    For those who want a simpler way to accomplish the same thing, I've released an add-on that only requires that you put your tracking id in default.php:

    http://vanillaforums.org/addon/608/analytics

    Hope it helps!
  • @Lykaon said:
    For those who want a simpler way to accomplish the same thing, I've released an add-on that only requires that you put your tracking id in default.php:

    http://vanillaforums.org/addon/608/analytics

    Hope it helps!

    It helped and solved my problem. I'm using it at http://www.centraldetaxis.pt/forum/ and works like a charm!!

    I know this is a dumb remark but I'm a newbie to VanillaForums and I took a few minutes to understand what you said... "you put your tracking id in default.php"....

    It's on /plugins/analytics/default.php ... Hope it help someone... Also had to clean /cache some files to start working...

    Thanks Lykaon!!

    hgtonight
Sign In or Register to comment.