It’s strange, I’ve checked some “Simple” theme installation and AMP, especially the analytics block works as should https://search.google.com/test/amp?utm_source=gws&utm_medium=onebox&utm_campaign=suit&id=4kbxqIhafVkFrApiwIKokg
Have you modified the AMP files? I’m asking because I can see different analytics component markup in the AMP Theme:
Your site:
<amp-analytics type="gtag" data-credentials="include">
<script type="application/json">
{
vars": {
"gtag_id": "G-xxxxxx",
"config": {
"G-xxxxxx": {
"groups": "default"
}
}
}
}
</script>
</amp-analytics>
Generated by Publii:
<amp-analytics type="googleanalytics" id="analytics1">
<script type="application/json">
{
"triggers": {
"trackPageview": {
"on" : "visible",
"request": "pageview"
}
},
"vars" : {
"account": "G-xxx"
}
}
</script>
</amp-analytics>
The Analytics component on your site loads into the <head> section, but Publii loads it in the footer https://github.com/GetPublii/Publii/blob/master/app/default-files/theme-files/amp-footer.hbs
One more question: Have you pasted the analytics code via the Custom HTML tool?