Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Tag Manager for Genesis Theme
/**
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