Google Tag Manager - by Katya - on WordPress WooCommerce support

This topic has 8 replies, 3 voices, and was last updated 9 years, 1 months ago ago by Eva Kemp

  • Avatar: Katya
    Katya
    Participant
    March 2, 2015 at 00:14

    Hi, I’m using the legenda theme and to add the google tag manager, instructions say to add the code into the header.php file.

    I do that by going to Apearance > Editor > and choosing header.php but this file does not include a <body> tag to add the google tag manager code.

    How should I add it?

    Thank you so much.

    7 Answers
    Avatar: stan
    Stan Russell
    Participant
    March 2, 2015 at 11:09

    Hello,

    please open file header.php, find line with </head> tag and add your code before that tag.

    We recommend you to make all theme customizations only in child theme: http://codex.wordpress.org/Child_Themes

    Regards,
    Stan Russell.

    Avatar: Katya
    Katya
    Participant
    March 2, 2015 at 16:40

    This is all I see in my header.php – no head tag:

    <?php
    /**
    * @package vogue
    * @since 1.0.0
    */

    // File Security Check
    if ( ! defined( ‘ABSPATH’ ) ) { exit; }

    get_template_part( ‘header-single’ );
    get_template_part( ‘header-main’ );

    Avatar: Eva
    Eva Kemp
    Support staff
    March 2, 2015 at 18:27

    Hello,

    Please provide us with wp-admin panel credentials and the code you need to insert.
    Also show instruction which you followed.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Katya
    Katya
    Participant
    March 3, 2015 at 05:05

    Hi Eva,

    I go to: Apearance > Edito > and click on header.php

    and this is the code I find:

    <?php
    /**
    * @package vogue
    * @since 1.0.0
    */

    // File Security Check
    if ( ! defined( ‘ABSPATH’ ) ) { exit; }

    get_template_part( ‘header-single’ );
    get_template_part( ‘header-main’ );

    no head tag. Login below

    Thanks Katya

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    March 3, 2015 at 11:02

    Hello,

    You’re using Dream Theme and not Legenda theme. Please contact the authors of that theme concerning your issue.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Katya
    Katya
    Participant
    March 4, 2015 at 04:55

    oh i need a break – feeling like an idiot – working on too many sites at once lol

    Thank you Eva!

    Avatar: Eva
    Eva Kemp
    Support staff
    March 4, 2015 at 14:49

    Hello,

    You’re welcome.

    P.S. Don’t work too much you need some rest too.

    Regards,
    Eva Kemp.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘Google Tag Manager’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.