Created
June 9, 2015 03:30
-
-
Save danielmcclure/85ca8304362c5f9ba94d to your computer and use it in GitHub Desktop.
Add DuracellTomi's Google Tag Manager Plugin Code After Body Tag for Genesis Theme Framework
This file contains hidden or 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 | |
// Do not include the PHP tag above. | |
/* Add DuracellTomi's Google Tag Manager for WordPress Plugin Code After Body Tag */ | |
add_action('genesis_before', 'google_tag_manager'); | |
function google_tag_manager() { ?> | |
<!-- Google Tag Manager --> | |
<?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?> | |
<!-- End Google Tag Manager --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment