Can not install GTM properly right
-
Hi there!
First of all, thank you guys for such a great plugin but I am strugglin to install GTM. FYI: AMP is only availably on posts in my site.These are the steps I have followed:
I have already created a separate container un GTM for my amp version
In settings -> Analytics -> I have checked and complete Google Tag manager and also type my Analytics IDAlgo, in advanced settings in Head section I have add these scripts:
- <!– AMP Analytics –><script async custom-element=”amp-analytics” src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script>
- <meta name=”amp-google-client-id-api” content=”googleanalytics”>
And in my body section I have add this script:
- <!– Google Tag Manager –>
<amp-analytics config=”https://www.googletagmanager.com/amp.json?id=GTM-XXXXXX>m.url=SOURCE_URL” data-credentials=”include”></amp-analytics>
The problem is I am getting on console theses errors:
- Access to fetch at ‘https://www.googletagmanager.com/amp.json?id=%20GTM-XXXXXX&__amp_source_origin=https%3A%2F%2Fwww.aplicacionesparamoviles.com’ from origin ‘https://www.aplicacionesparamoviles.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
- Failed to load resource: net::ERR_FAILED
- [AmpAnalytics <unknown id>] Error loading remote config: https://www.googletagmanager.com/amp.json?id= GTM-XXXXXX Error: XHR Failed fetching (https://www.googletagmanager.com/…): Failed to fetch
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Can not install GTM properly right’ is closed to new replies.