views:

74

answers:

2

For analytics purposes, I need to determine if a user is a first time visitor, and output some Javascript.

Preferably I'd be able to do this from the theme editor, not having to edit the code, but if that is the best way to achieve this, that's fine.

I was thinking something with the session, but it seems like I would have to hack some code for Wordpress to use sessions.

Any ideas? Thanks!

+1  A: 

I think a plug-in exists that does what you are looking for if I understand your question correctly.

http://weblogtoolscollection.com/news/topic/wordpress-plugin-for-first-time-visitors

Robert Greiner
A: 

This question reminded me the What Would Seth Godin Do wordpress plugin which has been ported to many CMS and blogging tools.

Gregory Pakosz
figuring out who Seth Godin is, is left as an exercise to the reader :)
Gregory Pakosz
Seth Godin is what makes Chuck Norris jokes funny.
Flory