5 ms·
So if I have AMP on my site and a user clicks an AMP link, does my web server record a hit? That's what I care about, since I use traffic stats to negotiate dea
by freehunter 10y ago
So if I have AMP on my site and a user clicks an AMP link, does my web server record a hit? That's what I care about, since I use traffic stats to negotiate deals with sponsors. I don't run third-party (even Google) ads on my site, it's all native "sponsored content", so making sure traffic is recording correctly is pretty important to me.
The first question I hear when I start a conversation about a sponsorship is "how many hits did you have last month" and the second question is usually "how many hits do your sponsored posts usually get?". I need to be able to answer those questions, and prove it too.
- wmf 10y agoServer-side logs are extremely uncool; you need to use JS to record analytics these days (even if the JS just does a POST to your own server).
- kuschku 10y ago> So if I have AMP on my site and a user clicks an AMP link, does my web server record a hit? That can be very easily answered with "no". This is intentional in this design, for faster loads.
- throwaway91111 10y agoDefective by design sure rings a bell....
- ehsankia 10y agoThe server itself doesn't (you don't get extra load), but analytics is forwarded to you. So you can still get the numbers you need to convince the higher ups, just not directly from your server logs.
- epistasis 10y agoAt first my distaste for AMP has been as a user: broken inertial scrolling, wasted space, and broken links. But as I learn about it AMP becomes even more distasteful. Waiting for an intermediary to forward analytics to you is horrific. What's going on at Google these days? Everything about AMP sounds like a bald-faced attempt to destroy the web. At every point there are horribly unjustified architectural decisions that hurt the web but also help Google.
- wmf 10y agoThe decisions are justified (although years late) but you either didn't read them or don't agree with them.
- rickycook 10y agowhich discounts people who use various content blockers specifically to stop intrusive analytics. these seem to be becoming more popular, so it's only going to be more of an issue to measure traffic
- freehunter 10y agoDoes it only forward analytics using Google Analytics? If I use other forms of analytics, anything from Jetpack to AWStats, it sounds like I'd be missing out on recording traffic.
- magicalist 10y agoit supports a bunch of analytics, but from my (tiny amount of) research it looks like you'll have to write your own config for those two: https://www.ampproject.org/docs/reference/components/amp-analytics#configuration https://www.ampproject.org/docs/reference/components/amp-ana...