Created
September 28, 2018 06:48
-
-
Save hgrimelid/32275f6f2a55de88587b5d1f655db84f to your computer and use it in GitHub Desktop.
Google Tag Manager in Enfold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GTM Body Script | |
*/ | |
add_action( 'ava_after_body_opening_tag', function() { | |
?> | |
// GTM code here | |
<?php | |
}, 1); | |
/** | |
* GTM Head Script | |
*/ | |
add_action('wp_head', function() { | |
?> | |
// GTM code here | |
<?php | |
}, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment