Page View

Discussion corner for Developers of Serendipity.
Post Reply
kazagha
Posts: 4
Joined: Fri Feb 06, 2009 11:45 am

Page View

Post by kazagha »

Apologies for what is probably quite a basic question. I am obviously new to the serendipity thing.

I was putting together my little blog and I was wondering if there is an easy way to get page views on individual posts, or on the page as a whole. It's probably also worth mentioning that it's hosted by my ISP so I might not have privledges to do what needs to be done, but I could try requesting it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Page View

Post by garvinhicking »

Hi!

There are multiple possibilities to do that.

The most usual is to use a tool like Google Analytics or an external tracker like awStats or phpMyVisits.

Then, the s9y internal variant is the use of the "Karma" plugin, which can also track individual clicks to articles.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kazagha
Posts: 4
Joined: Fri Feb 06, 2009 11:45 am

Re: Page View

Post by kazagha »

Thanks for the quick response Garvin,

Are you familiar with Google Analytics, sounded like a good idea since I already have a gmail account and whatnot. I have to post the code before </body> tag, which I do how since I can only post bits and I am not actually hosting it myself. Or can I do it on an individual post basis...
kazagha
Posts: 4
Joined: Fri Feb 06, 2009 11:45 am

Re: Page View

Post by kazagha »

Alright, I think for the point of the arguement, that the Karma plugin will do just fine.
kazagha
Posts: 4
Joined: Fri Feb 06, 2009 11:45 am

Re: Page View

Post by kazagha »

Also possibly because google analytics takes 24 hrs to show up with the hits, helps to read the instructions.
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Page View

Post by kleinerChemiker »

There exists a plugin for google analytics.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Page View

Post by judebert »

To add the Google Analytics code, you could use an "HTML Nugget" plugin. This plugin allows you to add a nugget of HTML in your page. You could use this method to insert a counter from any service.

You could also modify the template itself, but that involves modifying the files on the server. It's not difficult, but it sounds like you don't have access to the files.
Judebert
---
Website | Wishlist | PayPal
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Page View

Post by Don Chambers »

BTW - anyone ever compare what the plugin offers in excess of just placing the google analytics code somewhere on the page? I have been personally wondering if the overhead of yet-another-plugin is really worthwhile, but do not want to deprive myself of useful statistics by eliminating the plugin if it is superior to just the regular G.A. code.
=Don=
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Page View

Post by kleinerChemiker »

If you do not want to track external links or file downloads, its better to include the ga code into the template.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Page View

Post by Don Chambers »

kleinerChemiker wrote:If you do not want to track external links or file downloads, its better to include the ga code into the template.
How does the plugin handle external links and file downloads, and how does that translate to a GA report? I thought I added some google code to an external link once upon a time which then made it look like a page on my own site, but I cannot recall, and cannot find the link!
=Don=
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Page View

Post by kleinerChemiker »

The plugin scans the output for external links or files and adds the needed code to the links (http://www.google.com/support/googleana ... opic=11004). External links look liek externe/www.externaldomain.tld/pagesxyz in your ga report. I dont know how downloads look like, but i think its download/filexyz or something like that.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Page View

Post by Don Chambers »

Thanks for the clarification - I'll dig a little deeper into it on one of my test sites.
=Don=
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Page View

Post by kleinerChemiker »

If you have further questns, you kan pm me. I think I could answere most questions, since I wrote the plugin. Only for some details I have to look into the code.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Page View

Post by Don Chambers »

Thanks - I'm a bit distracted on something else at the moment, but one of these days I might take you up on that offer.
=Don=
Post Reply