Google Tag Manager Manual implementation

Posted in: Newspaper
Post count: 2

I am going to create a child theme and install the GTM snippet in the header.php. My question is, I noticed two header.php files in the Newspaper theme:

1. header.php
2. mobile/header.php

To ensure that the GTM snippet is globally placed site-wide for all devices (Mobile/Tablet/Desktop…) do I need to place the GTM snippet in both header.php files?

Post count: 22421

Hello,

Only if you use the mobile theme plugin should you add code to the mobile theme files: https://forum.tagdiv.com/the-mobile-theme/
If you do not use the plugin, you do not need to add your code in the mobile theme files.

Thanks.

Post count: 2

Thanks Bogdan!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.