Kumar Swapnil
Kumar Swapnil

Reputation: 190

(Accelerated Mobile Pages) AMP Analytics

I am trying to learn AMP Analytics. I stumbled upon this statement which I am unable to understand.

Since analytics priority is lower compared to content on the page, it's recommended that clicks are tracked using a browser redirect to avoid click loss.

Can someone please make me understand how redirect helps in avoiding click loss.

Upvotes: 1

Views: 138

Answers (1)

fstanis
fstanis

Reputation: 5534

The problem that's referred to is that analytics have low priority, i.e. they are not guaranteed to fire immediately. Clicking on a link navigates you to a different page, which may happen before analytics has a chance to fire a click event.

Thus, it's safer to track links through other means, like a redirect, rather than to rely on amp-analytics which may result in a race condition.

Upvotes: 1

Related Questions