Viewing 9 replies - 1 through 9 (of 9 total)
  • @waseemnaikgmailcom thanks for your inquiry.

    The Site Kit plugin is a great way to ensure Google tracking scripts/ tags (including those for Analytics) get applied to AMP pages appropriately.

    Alternatively, the AMP plugin also has a settings area to input the required amp-analytics JSON for Google Analytics under AMP > Analytics.

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    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&#8243;
    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

    @waseemnaikgmailcom thanks for your reply.

    The settings in the AMP plugin is for Google Analytics not Google Tag Manager, so there isn’t a way to input code for that directly there.

    Please open a support topic in the Site Kit support forums for assistance with configuring the Tag Manager connection.

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    >>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 how to implement this under the AMP plugin AMP Analytics Options?

    much obliged

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    does anyone monitor or support this?

    TIA

    Plugin Author Alberto Medina

    (@albertomedina)

    Your question has been answered. As indicated in the response, you can use the Site Kit plugin to configure GTM. You can ask for support in the Site Kit forum.

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    so, then the “analytics” is limited to google analytics alone ?

    fine then;

    and no one is answering site kit for GTM;

    thanks for your clarifications

    Plugin Author Pascal Birchler

    (@swissspidy)

    Correct, that analytics screen is currently not suitable for GTM.

    As for Site Kit, you have posted your support request on a weekend. The forums are usually only monitored on weekdays during regular business hours.

    Thread Starter wn nj

    (@waseemnaikgmailcom)

    thanks for clarifications;

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Google Tags and AMP? How to?’ is closed to new replies.