• Resolved pairfumlondon

    (@pairfumlondon)


    Dear Thomas,

    Many thanks for creating this fantastic plugin.

    This is just a quick support request for you to reconfirm the compatibility between your plugin and the WP Theme “GeneratePress”.

    We have attached the link to the support thread where you discussed the compatibility with Tom (@edge22 author of GeneratePress) and Dragomir (@ddenev).

    Tom from GeneratePress confirmed yesterday in the support forum of GeneratePress that the following function added to function.php of his child themes will work:

    //* DuracellTom Google Tag Manager & GeneratePress
    add_action( ‘generate_before_header’, function() {
    if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); }
    }, 0 );

    Tom also indicated that he believes the ‘Codeless Injection’ should also work but he asks that we double check with you that the fix you implemented is still working. Is the fix still implemented?

    Many thanks for all your help on this.

    [ Signature deleted ]

    • This topic was modified 6 years, 4 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I can confirm that the latest version of GTM4WP has an integration with the genesis_before WP hook which outputs the so called noscript partn of the GTM container code right after the opening <body> tag.

    generate_before_header is not used however but I guess this might be just after genesis_before.

    My latest knowledge is that with GeneratePress and the integration in GTM4WP using the codeless placement option should work without issues and additional coding in your theme

    Thread Starter pairfumlondon

    (@pairfumlondon)

    Hi Thomas,

    I am sorry but I don’t fully understand your answer:

    Are you saying that generate_before_header is no longer supported?

    Is this compatibility patch no longer valid:
    https://github.com/duracelltomi/gtm4wp/commit/e9e8a77025df90fb679919a239b8ac08d7dae432

    I am glad to hear that the ‘codeless injection’ works.

    [ Signature deleted ]

    • This reply was modified 6 years, 4 months ago by Jan Dembowski.
    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Sorry for the confusion, I was in mistake, generate_before_header is still supported as you can see in the GitHub commit that you mentioned.

    Thread Starter pairfumlondon

    (@pairfumlondon)

    Hi Thomas,

    Many thanks for this confirmation.

    I perfectly understand that it is difficult to remember every fix that you implemented.

    [ Signature deleted ]

    • This reply was modified 6 years, 9 months ago by pairfumlondon. Reason: resolved
    • This reply was modified 6 years, 4 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘GeneratePress Compatibility’ is closed to new replies.