Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gcman105/596dc7a9dda579fba726 to your computer and use it in GitHub Desktop.
Save gcman105/596dc7a9dda579fba726 to your computer and use it in GitHub Desktop.
Add Google Tag Manager script to a Genesis Framework Child Theme
/**
* Add Google Tag Manager script to a Genesis Framework Child Theme
*
* @author Gary Cheeseman (Forked from Anand Kumar)
* @link http://www.garycheeseman.me.uk/
*
*/
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