...
Info |
---|
Most CMS platforms have plugins or modules which assist with the placing of a GTM tag on your site! It is worth checking for a canonical method for adding head script tags to your stack before development. |
For example for Drupal there is the Google Tag plugin, and in WordPress’s case, you can simply add the tag to the Site Kit Plugin. In WordPress’s case, the plugin can create a Tag for you
Otherwise, the steps are as simple as:
...
Create a GTM Account
...
To set up Google Tag Manager on either your Drupal or WordPress site…
Create a GTM Account
Install the extension into your Content Management System
Drupal: google_tag module
WordPress: Site Kit Plugin
Visit the configuration screen of the extension, and paste the supplied Code or ID into your application
Review some of the advanced settings are set up properly…
Drupal: Ensure the "include the snippet as a file" setting is DISABLED
Configure Tags & Triggers for Google Analytics or other properties
That’s it! .
GTM Configuration
The rest of GTM is tags & triggers that register events with given services.
...