Topic: Google Analytics Plugin

Hello - first off congrats on selling the code! That's cool.

Secondly, I'm trying to create a Google Analytics plugin, to display the javascript at the end of the page right before the closing body tag. I got the admin control to work, but I'm not sure how to hook into the footer.php file. Currently I'm testing to see if the config array has the code element in it, but I'd rather insert it from the outside.

Thanks!

2

Re: Google Analytics Plugin

Just add the code on main.tpl, before </body>. No need for a plugin

Re: Google Analytics Plugin

Indeed, a plugin is not what you're going for. A plugin allows you to add a tool to the administration pages.
Moved.

Re: Google Analytics Plugin

how about sometype of stats mod? that displays either in a graph chart or sometype of pie ?

maybe even something like punres stats?


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!