Category: Analytics

  • How to add Google Tag Manager to Genesis StudioPress with Duracell

    How to add Google Tag Manager to Genesis StudioPress with Duracell

    How to add Google Tag Manager to Genesis StudioPress framework with the Google Tag Manager for WordPress plugin   sudo nano wp-content/themes/genesis-sample/functions.php   Then add the following code: // Add Google Tag Manager code immediately below opening tag add_action( ‘genesis_before’, ‘sas_google_tag_manager’ ); function sas_google_tag_manager() { ?> < ?php if ( function_exists( ‘gtm4wp_the_gtm_tag’ ) ) { gtm4wp_the_gtm_tag(); } ?>…