can anyone help me to put google analytic code on amp story? Amp-story does not support GA code? I have put it like this.
<amp-analytics type="gtag" data-credentials="include">
<script type="application/json">
{
"vars" : {
"gtag_id": "G-XXXXXXXXXX",
"config" : {
"G-XXXXXXXXXX": { "groups": "default" }
}
}
}
</script>
</amp-analytics>
But it seems does not work.
I have got the issue. Amp Story does not support Google Analytic 4 yet. If we use UA-XXXXXXX-X this code it works but G-XXXXXXXXXX does not work.