ZenphotoCMS Forum
HELP !! Google Analytics/StatCounter - Any Solutions? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: HELP !! Google Analytics/StatCounter - Any Solutions? (/thread-8359.html)



HELP !! Google Analytics/StatCounter - Any Solutions? - gyanagi - 2011-03-10

Has anyone been successful in adding the Google Analytics and StatCounter code to ZenPhoto in the latest version?

If so how? I've been looking at this a while.. I also used Statcount and place the code in the footer, it counts page clicks but it doesn't count individual images that are clicked on a page.. probably because the page doesn't refresh... so need help there also.

Also make sure the solutions count all CLICKS, including the photo images that appear on the screen.. versus just the pages views.. clicks .. so if a person cliks on an image or clicks on a next page I want to collect those clicks..

So any solutions would be greatly appreciated.

JC




HELP !! Google Analytics/StatCounter - Any Solutions? - acrylian - 2011-03-11

You can add Google Analytics or any other script by modifying the theme used. Also Zenphoto features its own hitcounter for pages already. If you want special clicks counted besides that you have to modify your theme as well and write some extra functionality for that as either a theme custom function or as a plugin.

See the user guide for info on theming and plugins.




HELP !! Google Analytics/StatCounter - Any Solutions? - micheall - 2011-03-12

Also, I have an analytics plugin working just fine on the 1.4.0.2 version of Zenphoto, I can zip it up if you'd like, though I won't provide much in the way of support for it. It should work though.




HELP !! Google Analytics/StatCounter - Any Solutions? - acrylian - 2011-03-12

If you have something like that, even if unsupported, it would be great if you could make a page for it so we can link to it on our extensions section (we prefer no direct download links as it looks then as if it is downloaded from our site.). Just a simple or even static would be great.




HELP !! Google Analytics/StatCounter - Any Solutions? - micheall - 2011-03-12

No problem, I just took a look through the code to dust it off and make sure I didn't leave any ugly hack'n'slash code in it. I'll throw up a page and link it here in a few.




HELP !! Google Analytics/StatCounter - Any Solutions? - micheall - 2011-03-12

Here we go, hope it helps

http://inthemdl.net/pages/google-analytics




HELP !! Google Analytics/StatCounter - Any Solutions? - acrylian - 2011-03-12

Thanks, that surely helps some users as this question pops up regulary (although not really hard to add manually). I will add it today.

I just see that we already have an older google analytics plugin:
http://www.zenphoto.org/2009/11/google-analytics/

Is yours based on that or something new? Does not hurt to have two if there are differences.




HELP !! Google Analytics/StatCounter - Any Solutions? - micheall - 2011-03-12

It was that one old plugin. I merely fixed a bit of the code and made it ready for the current release. It actually had ceased functioning properly somewhere during the 1.3 series and I had to update it.




HELP !! Google Analytics/StatCounter - Any Solutions? - acrylian - 2011-03-12

Ah, okay, good. That saves me from adding a duplicate. Btw, you can mention on your page that our forum can be used for support (if needed and you like)




HELP !! Google Analytics/StatCounter - Any Solutions? - micheall - 2011-03-12

Roger that, didn't point it to any thread though, just to the forums in general.




HELP !! Google Analytics/StatCounter - Any Solutions? - acrylian - 2011-03-12

Just generally the forum is absolutly okay.




HELP !! Google Analytics/StatCounter - Any Solutions? - domc - 2011-03-12

I've been using Statcounter.com
Very easy to implement.




HELP !! Google Analytics/StatCounter - Any Solutions? - mark12 - 2012-07-25

I use 1lytics http://1lytics.com. It can display a list of visits, the details of each visitor and much more.