Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Justin

    (@justinrains)

    Did you add the code into your wordpress theme right after the beginning <body>‘ tag? Let me know.

    Plugin Author Justin

    (@justinrains)

    This is the code to add after the opening body tag:

    <?php do_action( 'body_open' ); ?>

    What is the point in the plugin?
    If you can add the code directly?

    Plugin Author Justin

    (@justinrains)

    You’re correct you could. I made this as an easy way to hook into themes and all you need to know is your GTM info.

    Justin

    But problem is that after update theme, my code is erased?
    <?php do_action( ‘body_open’ ); ?>

    Plugin Author Justin

    (@justinrains)

    Yes it will be, unfortunately. WP doesn’t have a hook defined to place code right before the opening <body> tag.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't Work’ is closed to new replies.