Last active
January 4, 2022 21:55
-
-
Save pradeepdotco/3517cadb8900ba385905 to your computer and use it in GitHub Desktop.
Google Tag Manager for Genesis Theme
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
/** | |
Add Google Tag Manager script on Genesis Framework | |
**/ | |
add_action('genesis_before', 'google_tag_manager'); | |
function google_tag_manager() { ?> | |
<!-- Google Tag Manager --> | |
ADD YOUR GOOGLE TAG MANAGER CODE HERE | |
<!-- End Google Tag Manager --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment