GTM code manager – custom code addition

  • Unknown's avatar

    How do I add the custom code to my Header in WP.

    ntainer code part placement Footer of the page (not recommended by Google, no tweak in your template required)
    Custom (needs tweak in your template)
    Codeless injection (no tweak, right placement but experimental, could break your frontend)
    Off (only add data layer to the page source)

    Code placement decides where to put the second, so called noscript part of the GTM container code.
    This code is usually only executed if your visitor has for some reason disabled JavaScript.
    The main GTM container code will be placed into the section of your webpages anyway (where it belongs to).
    If you select ‘Custom’ you need to edit your template file and add the following line just after the opening tag:

    I don’t have a site linked to this WordPress.com account

  • Unknown's avatar

    Hi there,

    I’m not seeing any WordPress.com sites on this account. Can you share the address of the site you are seeking help with?

  • The topic ‘GTM code manager – custom code addition’ is closed to new replies.