Member
Member
sarah.kho   2010-08-11, 18:50
#1

Hi,

I am trying to include Analytics into Zen photo. So far I tried:

http://blog.hailzhang.com/add-google-analytics-to-zenphoto/
and
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55504

and none of them appear to be working.

The first solution causes the function to become faulty and the second solution does not work properly and lots of error messages appear on top of all pages complaining that the
analyticsTracking.php file is missing.

I created the file inside zp-core folder and add the following line on top of the template-functions.php

Can you please let me know what is wrong?

Member
Member
markky99   2010-08-11, 19:10
#2

You need to place several lines of code into your header.php, inside whichever theme you are using.

You can copy these lines of code together with the individual tracking code that Google provides once you have registered.

Mark

Member
Member
sbillard   2010-08-11, 19:13
#3

According to the second site you refernce, the script must be loaded just before the tag. The poster in the fist post put the equivalent script in the Zenphoto footer which will be just before the tag. Putting it at the front of template-functions.php will NOT do that.

Administrator
Administrator
acrylian   2010-08-12, 08:28
#4

Also most Zenphoto themes do not have a header.php at all...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.