Title: GeneratePress Compatibility
Last modified: February 14, 2020

---

# GeneratePress Compatibility

 *  Resolved [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/)
 * 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](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This topic was modified 6 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgeneratepress-compatibility%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/#post-11906545)
 * 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](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/#post-11906776)
 * 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](https://github.com/duracelltomi/gtm4wp/commit/e9e8a77025df90fb679919a239b8ac08d7dae432)
 * I am glad to hear that the ‘codeless injection’ works.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This reply was modified 6 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/#post-11906818)
 * 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](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/#post-11906859)
 * Hi Thomas,
 * Many thanks for this confirmation.
 * I perfectly understand that it is difficult to remember every fix that you implemented.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This reply was modified 6 years, 9 months ago by [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/).
      Reason: resolved
    -  This reply was modified 6 years, 4 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 4 replies - 1 through 4 (of 4 total)

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

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/generatepress-compatibility/#post-11906859)
 * Status: resolved