Junior Member
Junior Member
gyanagi   2011-03-10, 23:10
#1

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

Administrator
Administrator
acrylian   2011-03-11, 10:10
#2

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.

Member
Member
micheall   2011-03-12, 10:19
#3

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.

Administrator
Administrator
acrylian   2011-03-12, 10:53
#4

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.

Member
Member
micheall   2011-03-12, 10:59
#5

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.

Member
Member
micheall   2011-03-12, 11:09
#6

Here we go, hope it helps

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

Administrator
Administrator
acrylian   2011-03-12, 11:28
#7

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.

Member
Member
micheall   2011-03-12, 11:32
#8

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.

Administrator
Administrator
acrylian   2011-03-12, 11:50
#9

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)

Member
Member
micheall   2011-03-12, 11:53
#10

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

Administrator
Administrator
acrylian   2011-03-12, 12:05
#11

Just generally the forum is absolutly okay.

Member
Member
domc   2011-03-12, 14:31
#12

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

Junior Member
Junior Member
mark12   2012-07-25, 18:19
#13

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

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