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.
Where is a good location to paste tracking code?
I use some customized parameters in Piwik and my preference would be to paste the code into file that loads on every page instead of trying to customize the Piwik plugin.
Piwik states to put the tracking code just before </body>
on every page. Where could I accomplish this in Vanilla 2.1b2?
Tagged:
0
Best Answer
-
hbf MVP
@openletter said:
lol... nevermind, it's at the bottom ofdefault.master.tpl
. Sorry, long day.no worries, i figured we'd find it. with your brains and my beauty, we can move mountains.
5
Answers
Create a custom theme.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
I have a custom theme, but I'm not sure where to paste the code in. I made a duplicate of the default theme per the Vanilla wiki.
just insert it before the < /body > tag in the custom theme.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
In following the wiki, I copied the default directory and created a
default.master.tpl
file.Here is the contents of my theme's directory:
In going through these files I don't see a
</body>
tag.lol... nevermind, it's at the bottom of
default.master.tpl
. Sorry, long day.no worries, i figured we'd find it. with your brains and my beauty, we can move mountains.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained