How to add Click Tracking to your BANS store using the new Analytics Code

One of the generous BANS forum members, Web Mogul, detailed the steps to add urchin javascript click tracking to your BANS site by modifying the index script for your store.

Just recently, however, new analytics sites are being given a new object orient script to install, simply referred to as “GA”. Presumably stands for “google analytics”.

Anyway, here is the simply coversion to add click tracking to your BANS store with the new code from analytics:

First, take a look over at Web Mogul’s site for the initial steps, but instead replace step six with this:

Old Step Six:

After the rel=”nofollow” attribute, add this:

onclick="javascript:urchinTracker('.$clickUrl.');"

MAKE SURE there is a space between the ending quote on the rel=”nofollow” and the onclick.

New Step Six:

After the rel=”nofollow” attribute, add this:

onClick="javascript: pageTracker._ trackPageview('.$clickUrl.')

. MAKE SURE there is a space between the ending quote on the rel=”nofollow” and the onclick.

I hope that helps! Let me or Web Mogul know if you’re having any troubles with the mod. He wrote the original mod and did all the hard work. I just updated it for the new GA code.

If you are undecided on Build a Niche Store, check it out! My commissions are increasing slowly with ONLY organic search traffic and minimal effort at driving traffic to the store.

Popularity: 21% [?]

Leave a Reply