ID Tracker

By Ronnie Moore on May 19, 2000

General

Save a visitor’s referral ID in a cookie ID on their computer. Then, you can you can access that ID cookie from the rest of your site. Useful to help you pay affiliate commissions or track Web site referrals.

When you first come to this page, it sets your ID cookie to “no id”. Click here to reload with our referral ID. (note the ?JSS we added to that link!)


Notes

  • Created by: Ronnie T. Moore
  • Web Site: http://www.javascriptsource.com/
  • Posted: May 19, 2000

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: idTracker.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Comments

Blog comments powered by Disqus