Finally stats on LiveJournal
Couple of hours of hack was worth it.
I finally managed to write a script which automatically embeds a img tag in the post with the Unique ItemID as part of the URL. So if you have your own webserver, or have access to some webserver with CGI access, then you could use this to keep track of the number of hits for each of your individual posts (along with all the usual referrer, IP ,UserAgent etc).
Just download this script and fill in your $username, $password and $post_url (The URL where you want the Post ID/Item ID to be submitted). You will also need to download Frontier::Client from CPAN. ‘Voila’ you are all set to go.
Right now you will need to run this manually after you update your journal (this inserts this into your last updated post), but am still looking at ways to integrate this with LJ clients.
Great work – now only if someone would add this to Logjam or some LJ client, I am working on a phpOpenTracker plugin which will do the reverse – read this uniqueID and get Title and itemID of your post so that more customised reports with links to LJ can be had. As you can see from my yesterdays post the webbug works great – even for tracking individual posts.
BTW your friends page had the greatest number of hits and visitors
This was really great, but since I don’t have (I think most of the readers wont be having, sitting on a lan behind a firewall) a webserver or access to logs of a webserver, a pity 😛
Can u suggest any public webserver giving CGI access to user logs?
http://www.livejournal.com/community/lj_nifty/68687.html
Kewl
Good stuff! You move fast. 😀
damn
I use webalizer to generate stats. The damn thing does not take into account anything after ? in the URL.
SUCKS.
Maybe there is some option in webalizer to consider that part of the URL too. Any other way that you can think off ?
Re: damn
Nope – Webalizer cannot be convinced to do that unless my knowledge is antiquated…
I am nearly done with the phpOpenTracker report for LJ also making an PHP port of your Perl script to insert the webug which will check if I have already done it or not…
Am wondering wether to wait for someone to hack LogJam or hack livelizard.mozdev.org myself
Gr88.. Thanx 🙂