Google analytics tag – child theme – not working

This topic has 4 replies, 2 voices, and was last updated 4 months, 3 weeks ago ago by Rose Tyler

  • Avatar: BSM
    BSM
    Participant
    July 26, 2024 at 11:35

    Hey guys – sorry i might need help with this.
    I added the google analytics tag in what it seems to me the Header.php file on the theme editor.

    But I’m using a child theme and for that reason I assume is not working?

    But when i open the child theme editor there is no header.php that i can edit.

    Could you please help adding the tag?

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 26, 2024 at 11:53

    Hello,

    Thank you for reaching out to us with your query. We understand that you would like to integrate Google Analytics tag into the “header.php” file of your xstore-child theme.

    To add Google Tag Manager (GTM) code, you can insert it into the header or footer of your site. This is often done through the 3rd party plugin https://wordpress.org/plugins/wp-headers-and-footers/ , or by editing the header.php file (copy file from the XStore parent theme to the child).

    Best Regards,
    8Theme’s Team

    Avatar: BSM
    BSM
    Participant
    July 28, 2024 at 10:55

    Thanks. Seems to be working now.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 28, 2024 at 12:20

    Hello,

    You’re welcome!

    Best Regards,
    8Theme’s Team

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

You must be logged in to reply to this topic.Log in/Sign up

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