Anyone Can Write To Your Google Analytics. That’s Why Stattery Makes You Prove It’s Your Site.
Go to any website that runs Google Analytics. Right-click, pick View Source, and search for G-. That little string is the site’s measurement ID.
Now you can write into their analytics.
Not read it. Write into it. Fake visitors, fake pages, fake referrers, fake countries. They’ll show up in that owner’s reports right next to their real customers, and Google won’t ask who you are.
1
public ID in the source of every page you serve
0
steps in Google’s setup guide that check the site is yours
Any
page, referrer, country or hostname a script cares to type
This Has A Name: Ghost Spam
Analytics people have called it ghost spam for about a decade. Search Engine Land describes ghost traffic as hits sent directly to GA4 without any actual page load. Nobody visits your site. A script talks straight to Google and says “I was here.” Bounteous was writing about the same trick back in 2015: traffic that never actually visits your website.
How does a stranger get in? With the ID you published. Search Engine Land says it plainly: anyone with access to it can potentially send fake hits to your property. And everybody has access to it, because MetricsWatch points out the measurement ID is public by necessity; it ships in the page.
Want to know what it looks like when it lands? MetricsWatch walked through a GA4 property that normally saw about 15 users and suddenly spiked to 510, all from one referrer and one hostname the site doesn’t even serve. The hostname, the referrer, the country and the landing page are, in their words, all just fields in that payload. The sender types whatever they want.
If your analytics will believe anything anyone sends it, it isn’t analytics. It’s a guestbook.
Google Knows. It Locked The Side Door.
Here’s the part I find funny. Google also offers a way for servers to send data into GA4, called the Measurement Protocol. That one needs a secret key, and Google’s own documentation warns that if the key leaks, strangers can send arbitrary or spam data. So Google knows exactly what happens when anybody can write into your reports.
But the front door, the tag in your page, can’t have a secret. Anything in a web page is readable by everyone who loads it. So the ID sits in your source code where every bot on earth can scrape it.
And when you set GA up, Google asks you to enter the URL of your primary website and a name for it. That’s it. Nothing in that guide checks that the site is yours. You could type in somebody else’s.
Google Does Verify, When The Data Is Sensitive
Google Search Console is a different story. Before Search Console shows you anything about a site, you have to prove you own it: a DNS record, an HTML file on the site, a meta tag, or your existing Analytics or Tag Manager code. Google spells out why: site owners in Search Console have access to sensitive Google Search information about a site, and it wants only a real site owner to get that.
So Google’s own rule is simple. Sensitive data, prove it’s yours. Page counts, come on in.
That works for Google Analytics because the worst a stranger can do there is junk up your charts. It does not work for Stattery, because Stattery isn’t holding page counts.
What Stattery Is Actually Holding
Stattery shows you who’s on your site in Real time. Not “a user from Ohio.” The actual people. For a WooCommerce store, that means:
Who Your Customers Are
Signed-in customers by name and email, and every page they looked at on the way to buying something.
What They Bought
Orders and revenue, tied to the visit, the ad and the search that brought them in.
What They Said
Every chat a visitor had with you, and every contact form they sent you through Stattery.
Now picture a stranger adding your domain to their Stattery account before you do. If all it took was typing in your site name, they’d be reading your customer list. That’s not a junked-up chart. That’s a breach.
So we don’t let it happen.
You Prove It’s Yours First
No Edge Observer needed for any of this. Everything in this section is on for every Stattery account, on every plan, from the first site you connect.
Your Site Proves Itself
You prove the site is yours once, when you connect it. No proof, no data. Not one visitor, not one order.
Money Comes From Your Server
Your sales and your customers’ names are tied to your site and come from your own server, not from a visitor’s browser. Nobody can type fake sales into your reports.
A Copied Tag Counts Nothing
Paste your Stattery tag onto some other website and it counts nothing there. Your numbers only come from your site.
Any account can also prove ownership with a DNS record, the same kind of proof Search Console takes. If you can add a record to your domain, you own it. Pick whichever is easier for you.
That’s as much as I’ll say about how the checks work. The people who’d love to read your customer list read blogs too.
Your Numbers Should Be Yours
If a tool will take data from anybody who knows your ID, you can’t fully trust what it shows you, and you sure can’t hand it your customers’ names. Stattery makes you prove the site is yours before it shows you a thing. It’s the same standard Google uses for Search Console. It should be the standard for analytics too.