Install Google Tag Manager

Hi, I’m installing Google Tag Manager on the website, but I can’t find the correct header.php file.
I’ve looked into framework>views>integrity but there’s none.

Can you help me please?

Thank you
Valentina

Hi Valentina,

Please install and activate the child theme and login through FTP then edit the functions.php then add this code:


add_action('wp_head', 'add_header_code');
function add_header_code(){
?>

    <!-- Add the Google Tag Manager here -->

    <?php
};

Please add the code you have in the <!-- Add the Google Tag Manager here --> of the code above.

Hope this helps.

I did this, however it does not work.

analytics works, but mailchip code does NOT work there.

And yes, I did edit it in the child theme…

Hello Zosaria,

Thanks for writing in!

If you are looking to integrate Mailchimp in the website that you can use Email forms plugin that can be installed from X > Validation > Extensions. To learn more, please take a look at following resource.

If you are looking to integrate Mailchimp with Google Analytics, please take a look at following article:

Alternatively, you can also take a look at following article:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.