I'm looking at Googles Measurement Protocol, which gives you a way to send google analytics information from your server. However, there doesn't seem to be any authentication required. Have I missed something? Otherwise, what's to stop other people randomly spamming fake data to my account?
-
1After 3 years I have the same question... Nobody can answer?– mondayguyCommented Dec 11, 2016 at 19:12
-
26 years ago… still… just to checkin here– Bogdan SavlukCommented Jan 25, 2019 at 11:46
-
@BogdanSavluk What are you checkin in for? What is unclear?– sdhausCommented Feb 11, 2020 at 14:18
2 Answers
There is no authentication required. There is nothing to stop people randomly spamming your account.
This is what has lead to the 'Ghost Referral' issue. See Link: https://moz.com/blog/stop-ghost-spam-in-google-analytics-with-one-filter
Google Analytics was initially set up the measurement protocol with good will envisaged, however this has not been the case.
-
What if I use Measurement Protocol to send data to google analytics? This trick won't work. Is there any method to configre google analytics recieve data only from your server ip or smth? Commented Dec 14, 2016 at 16:56
-
What do you mean by "What if I use Measurement Protocol to send data to google analytics? This trick won't work."? There is no method to configure Google Analytics to receive data from only designated servers. The goal of the Measurement Protocol was to "allow developers to measure how users interact with their business from almost any environment".– sdhausCommented Dec 14, 2016 at 19:05
The measurement protocol is to make collection of data as simple as possible. Think of it as an arbitrary data sink.
To separate fake data from data generated by sources under your control you can use a property of a hit you report. E.g. by setting a custom metric to some secret. Collected data then can be filtered by that property to exclude possibly "fake" data.