Visit Tracking - server-side / client-side
<p>I have an asp.net (webforms) application and I would like to track user visits to the site. I have the DB, objects, basic idea down.</p>

<p>My goal is to track a user from the first time he enters the site and up until he creates an account. So I can trace back where this user came from in his initial visit (Organic, paid, referrer, etc.).</p>

<p>I am planning to create a cookie with a GUID for each initial visit, store all actions in the DB, and finally, when the user registers, I can go back and update a username field for all rows matching the GUID.</p>

<p>My problem is that I can't make up my mind on the best method to do this.
Should I use an HTTP module and the session start and end events,
or maybe ajax calls to a WCF backend?</p>

<p>What would be the most efficient and accurate way to do this?</p>
