Closed drosanda closed 3 years ago
I've try using amp-analytics remote config and its work.
Step to reproduce:
static/ga.json
for remote configuration
{
"vars": {
"account": "UA-123456-X"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
}
}
}
2. Put `amp-analytics type="googleanalytics" id="analytics1" :config="ga"` on `layouts/default.vue`
3. add script on `layouts/default.vue`
export default { data() { return { ga: process.env.BASE_URL+'ga.json',
I think this issue are fully solved now
Hi there,
how to setup properly the GoogleAnalytics using this amp-module? For first step I've put this code on
layouts/default.vue
Terminal result
Chrome Console result:
When I inspect element, the json are parsed into html entity.