codejoust / session.js

Session.js - Get user session information
Other
1.2k stars 84 forks source link

Determine paid vs. organic traffic? #10

Open tcocca opened 12 years ago

tcocca commented 12 years ago

Is it possible somehow to determine if referral traffic is paid (adwords, adsense, bing ads, etc...) vs. organic (similar to google analytics).

codejoust commented 12 years ago

You can add in more checks for the search engine, or add a module searching for paid referrals.


Iain

On Jan 8, 2012, at 8:29, Tom Cocca reply@reply.github.com wrote:

Is it possible somehow to determine if referral traffic is paid (adwords, adsense, bing ads, etc...) vs. organic (similar to google analytics).


Reply to this email directly or view it on GitHub: https://github.com/codejoust/session.js/issues/10

codejoust commented 12 years ago

What ad networks do you want to add?

tcocca commented 12 years ago

I am thinking the big ones to start maybe? Adwords, Double Click, Adsense, Bing Adsense. I'm not quite sure what the actual tracking would involve. I think it would just be regex matching on the referrer.

codejoust commented 12 years ago

I might do this in a new query interface when I modularize the project. So, probably a far-future deal. You also can do session.cur_session.referrer.match(/doubleclick/i), etc. for now.

necenzurat commented 12 years ago

for google you can use if referer is google.com/aclk or if google leaves his ?gclid in the page url