Skip to content

Instantly share code, notes, and snippets.

@pixelloop
Forked from anandkumar/GTM on Genesis Framework
Created August 16, 2016 06:59
Show Gist options
  • Save pixelloop/4a7d349fa67dc53e3346fe3079ec0fa8 to your computer and use it in GitHub Desktop.
Save pixelloop/4a7d349fa67dc53e3346fe3079ec0fa8 to your computer and use it in GitHub Desktop.
Google Tag Manager on Genesis
/**
* Add Add Google Tag Manager script on Genesis Framework
*
* @author Anand Kumar
* @link http://www.blogsynthesis.com/add-google-tag-manager-to-wordpress/#genesis-framework
*
*/
add_action('genesis_before', 'google_tag_manager');
function google_tag_manager() { ?>
<!-- Google Tag Manager -->
PASTE GOOGLE CODE 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