Google analytics offers functionality to track specific events happening on your site using javascript calls like this :
ga('send', 'event', 'button', 'click', 'nav buttons', 4);
This is documented here : https://developers.google.com/analytics/devguides/collection/analyticsjs/events
I am wondering if this is secure?
Couldn't a user just open the javascript console in the chrome web tools and make random calls to ga passing in random parameters and mess up our sites analytics!?
Or a more frustrating user could even add a little javascript loop and run the placement of infinite calls to ga event tracking?
It seems ludicrous if this is the case! This kind of thing needs to be server side in my opinion. I am just confused that google would offer this client side option without considering accuracy and security! Have I missed something!?