How is the configuration of Google Analytics 4 with AMP?

578 Views Asked by At

I understand that recently a release came out informing that GA4 is AMP compatible, that an extra configuration must be done, putting the following

`'ampHost' tag: '${ampdocHost}'`    

in the amp configuration variables, but there is another step that is: "Register the ampHost custom parameter in Google Analytics 4 and relaunch your AMP page" This step I can't understand. Where in GA4 should this configuration be done? How should it be done?

1

There are 1 best solutions below

1
On

You must add it in "Custom definitions". Try this:

Step 1

Step 2