Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256768

    Is there any way to add Google Tag Manager to my site? https://www.google.com/tagmanager/
    I put all tracking\remarketing codes into the “Google Analytics Tracking Code” field in settings.
    It’s cool, but it puts code before closing </body> tag. Tag manager require to place code just after opening <body> tag. Is there any way to do that? I use child theme.

    #256939

    Hi Konstantin!

    Thank you for visiting the support forum!

    You can copy the header.php file on your child theme folder then place the tagmanager code right after the body tag:

    <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank); avia_markup_helper(array('context' => 'body')); ?>>
    

    Cheers!
    Ismael

    #256942

    Isn’t it good idea to make checkbox to place tracking code in the end, or in the start of the page?

    #257445

    Hi!

    Immediately after the opening <body> tag, so at the start of the page.
    https://developers.google.com/tag-manager/quickstart

    Best regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.