Can’t collect core web-vitals in AMP using gtag
-
I want to capture the CLS value from AMP pages using the following setup.
{ "optoutElementId": "__gaOptOutExtension", "vars": { "gtag_id": "UA-111713316-1", "config": { "UA-111713316-1": { "groups": "default", "site_speed_sample_rate": 100, "linker": { "domains": [ "springhow.com" ] } } } }, "triggers": { "Web-Vitals-CLS": { "on": "hidden", "vars": { "event_category": "Web Vitals", "event_action": "CLS", "event_value": "${cumulativeLayoutShift}" } } } }
However, I don’t see the event firing. What am I doing wrong?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can’t collect core web-vitals in AMP using gtag’ is closed to new replies.