Skip to content

A simple WordPress plugin for inject the Google Tag Manager JS code snippet into the site <head> and the <noscript> snippet after the open <body> tag.

Notifications You must be signed in to change notification settings

valenjeb/gtm-inject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Google Tag Manager Inject

A simple WordPress plugin for inject the Google Tag Manager JS code snippet into the site <head> and the <noscript> snippet after the open <body> tag.

Usage

In order to put the plugin into action you must first define GTM_CONTAINER_ID const in the wp-config.php file and set its value to the container ID you got from GTM.

define( 'GTM_CONTAINER_ID', 'container-id' );

About

A simple WordPress plugin for inject the Google Tag Manager JS code snippet into the site <head> and the <noscript> snippet after the open <body> tag.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages