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.
Options

How to add statcounter tracking code?

Where are the files I can edit to add the statcounter tracking code?

Best Answers

Answers

  • Options
    aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Themes > Theme name > Views > default.master.tpl

    Open with text editor and add code in footer.

    There was an error rendering this rich post.

  • Options
    gstargstar New
    edited November 2012

    Thanks @aery. What about if I use the default theme?

    (Right now I am unable to use anything else - I get bonk error)

  • Options
    peregrineperegrine MVP
    edited November 2012

    @gstar said:

    (Right now I am unable to use anything else - I get bonk error)

    first off to solve your bonk error. Which is always good to know.

    http://vanillaforums.org/discussion/comment/167383/#Comment_167383

    http://vanillaforums.org/discussion/comment/168676/#Comment_168676

    also see how to create your own theme if that is what you want.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    I CHMOD 777 this folder: /cache/Smarty/compile

    It shows now more BONK error, but if I change to test different themes, something is going wrong... Is there a tmp folder I need to empty?

  • Options

    if you say BONK error it gives you a bonk page. Is that what you see?

    if you get a detailed error report post it.

    if you don't do either don't expect a solution because you are not helping us help you.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    There is no detailed error. Or maybe I'm doing something wrong. It says:

    Bonk
    Something funky happened. Please bear with us while we iron out the kinks.

    Will PM you my site URL.

  • Options

    @gstar said:
    There is no detailed error. Or maybe I'm doing something wrong.

    http://vanillaforums.org/docs/errors

  • Options

    @peregrine thank you!!!

    that worked like a charm....

    So all it took was to set 777 CHMOD on the compile folder.

    This is located in: /cache/Smarty/compile/'

  • Options

    For the record: The statcounter tracking can be added here:

    /applications/dashboard/views/default.master.php

    Add at the bottom before

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @gstar

    For the record, you should not make changes to the Vanilla core.

    The change you suggest should be made in your custom theme's default.master file.

    if you don't have a custom theme you should create one if you are planning on making changes to Vanilla.

  • Options

    @whu606 thank you for your reply. can you explain what you mean?

    i'm using the default theme... should i make an extra copy of it and rename it?

  • Options

    @whu606 got it!

    it appears i made the changes in default.master.php

Sign In or Register to comment.