javascript - Event tracking similar to Google event tracking -


i implement own event tracking (client , server) similar google analytic. use java script this:

... _gaq.push(['_setaccount', 'ua-xxxxx-x']); _gaq.push(['_trackevent', 'button3', 'clicked']) ... 

this code sends data google analytics url. instead of _gaq implement own function send requests server result. many websites using code snippet.

but can see request , make robot or similar act same way user doing on website , triggering tracking event.

is there way can detect if user has clicked something, or request sent spammer? how google analytics event tracking protecting spam event tracks ?

ga doesn't protect anything, can send crap data known account id.

ga has implemented list of (spam)bots , crawlers can filter out. that's pretty thing can when using clientside code, blacklist known combinations of ip/user agent/etc. not against actual people sending spam data, though. adservers employ statistical models judge calls can't possible come real users, works huge data volume (dozen or hundred of millions of clicks).

it's bit easier if use serverside code - can send token or nonce or not visible spam bots , can't faked or copied. js tracker , unauthenticated users guess pretty out of luck.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -