Forum Replies Created

Viewing 1 replies (of 1 total)
  • Abu Syaid

    (@iamabusyaid)

    Install Google Tag Manager on your block theme (like YITH Wonder) via FTP:

    1️⃣ Go to: /wp-content/themes/YITH-wonder/functions.php
    2️⃣ Add this code:

    phpCopy

    Edit

    add_action('wp_head', function() {
    ?>
    <!-- Google Tag Manager -->
    <script>(your GTM head code here)</script>
    <?php
    });
    add_action('wp_body_open', function() {
    ?>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <?php
    });

    ✅ Replace GTM-XXXX with your GTM ID.
    ✅ Save → Clear cache → Test.

Viewing 1 replies (of 1 total)