Loading...
 
Skip to main content

Features / Usability


Google Analytics Problem

Hi, I am new to the community and I am really impressed with the software.

The problem I am running into is that I can't seem to figure out how to get google analytics to run on my website. In the documentation I found this link http://doc.tikiwiki.org/tiki-view_faq.php?faqId=4#q39Question which walks you through some steps for uploading the tracking code to the footer.tpl

I followed the steps and put the code in my footer.tpl file and put it back on my server, but Google Analytics says that it can't find the tracking code. I checked the source for the home page and I can see where the code should be, but it isn't showing up. My initial guess is that the code is being stripped before it can upload. because the code is in the footer.tpl file that is uploaded on my server.

I tried both versions of the code and still nothing. I was hoping someone can help me to figure out what is wrong. I am using the simple.css and I have version 2.1 of TikiWiki.

Thanks a lot.

Try putting the script between {literal} tags, like this:

Wrapping script in Smarty literal tags
Copy to clipboard
{literal}<script...>{/literal}


(I don't know why that's not in the docs — I thought it was necessary for any javascript in a Smarty template.)

-- Gary