1. >>The Site Kit plugin is a great way to ensure Google tracking scripts/ tags (including those for Analytics) get applied to AMP pages appropriately. <<
Site Kit wants to connect to a new Google Tag Workspace; would not open up to my existing workspace
so, I created one and now as expected; I have two workspace(s), with all my tags, etc. in the first workspace;
so, I tried to export from the first and import into second; I think it does not allow export / import from the same account, even if different workspace;
—
2. >>Alternatively, the AMP plugin also has a settings area to input the required amp-analytics JSON for Google Analytics under AMP > Analytics. <<
I do not know how to implement this; there are two parts to my google tags, <HEAD> page section injection and After the <BODY> tag
the code that goes for Head section is:
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-WLC5B79′);</script>
<!– End Google Tag Manager –>
the code that goes into After the <BODY> tag is:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-WLC5B79″
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
kindly advise who to formulate the script from both sections because under AMP plugin,
so, I am stuck;
much obliged in anticipation