You are here

README.txt in GoogleTagManager 7

Same filename and directory in other branches
  1. 7.2 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Recommended modules
 * Installation
 * Configuration
 * Troubleshooting
 * Maintainers


INTRODUCTION
------------

This project integrates the site with the Google Tag Manager (GTM) application.
GTM allows you to deploy analytics and measurement tag configurations from a
web-based user interface (hosted by Google) instead of requiring administrative
access to your website.

 * For a full description, visit the project page:
   https://www.drupal.org/project/google_tag

 * To submit bug reports and feature suggestions, or to track changes:
   https://www.drupal.org/project/issues/google_tag


REQUIREMENTS
------------

Sign up for GTM and obtain a 'container ID' for your website. Enter the
'container ID' on the settings form for this module (see Configuration).

 * https://tagmanager.google.com/


INSTALLATION
------------

Place the project files in an appropriate modules directory and enable the
module as you would any other contributed module. For further information see:

 * https://www.drupal.org/node/895232


CONFIGURATION
-------------

Users in roles with the 'Administer Google Tag Manager' permission will be able
to manage the settings for this module. Configure permissions as usual at:

 * Administration » People » Permissions
 * admin/people/permissions

From the module settings page, configure the conditions on which the tags are
inserted on a page response. Conditions exist for: page paths, user roles, and
response statuses. See:

 * Administration » Configuration » System » Google Tag Manager
 * admin/config/system/google_tag

The module implements the Variable API, so that settings may be separately
configured by realm, thus enabling support for multiple languages and domains.
If these features are needed, then review the other projects at:

 * https://www.drupal.org/project/variable
 * https://www.drupal.org/project/18n
 * https://www.drupal.org/project/domain_variable

For development purposes, create a GTM environment for your website and enter
the 'environment ID' on the 'Advanced' tab of the settings form.

 * https://tagmanager.google.com/#/admin

For additional data layer management, consider the dataLayer module. It supports
the default name for the data layer. To use a non-default name, apply a patch to
the code from that module module.

 * https://www.drupal.org/project/dataLayer


TROUBLESHOOTING
---------------

If the JavaScript snippets are not present in the HTML output, try the following
steps to debug the situation:

 * Confirm the snippet files exist at public://google_tag/ (on most sites this
   equates to sites/default/files/google_tag/).

   If missing, then recreate the snippet files by clearing all caches (e.g. from
   the command line using drush or from the performance administration page) OR
   by submitting the module settings page. The need to do this may arise if the
   project is deployed from one environment to another (e.g. development to
   production) but the snippet files are not deployed.

 * Enable debug output on the 'Advanced' tab of the settings page to display the
   result of each snippet insertion condition in the message area. Modify the
   insertion conditions as needed.

If you retain the default configuration setting to 'Include the snippet as a
file', then the Google 'verification' bot will report that the site is NOT setup
to use the Tag Manager. This report is a FALSE POSITIVE as the bot only checks
for inline code on the script tag. It does not load the snippet file and inspect
the code therein. Instead of relying on this bot, check whether the GTM snippets
are loaded as a result of the snippet added by this project.


MAINTAINERS
-----------

Current maintainer:

 * Jim Berry (https://www.drupal.org/u/solotandem)

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Recommended modules
  6. * Installation
  7. * Configuration
  8. * Troubleshooting
  9. * Maintainers
  10. INTRODUCTION
  11. ------------
  12. This project integrates the site with the Google Tag Manager (GTM) application.
  13. GTM allows you to deploy analytics and measurement tag configurations from a
  14. web-based user interface (hosted by Google) instead of requiring administrative
  15. access to your website.
  16. * For a full description, visit the project page:
  17. https://www.drupal.org/project/google_tag
  18. * To submit bug reports and feature suggestions, or to track changes:
  19. https://www.drupal.org/project/issues/google_tag
  20. REQUIREMENTS
  21. ------------
  22. Sign up for GTM and obtain a 'container ID' for your website. Enter the
  23. 'container ID' on the settings form for this module (see Configuration).
  24. * https://tagmanager.google.com/
  25. INSTALLATION
  26. ------------
  27. Place the project files in an appropriate modules directory and enable the
  28. module as you would any other contributed module. For further information see:
  29. * https://www.drupal.org/node/895232
  30. CONFIGURATION
  31. -------------
  32. Users in roles with the 'Administer Google Tag Manager' permission will be able
  33. to manage the settings for this module. Configure permissions as usual at:
  34. * Administration » People » Permissions
  35. * admin/people/permissions
  36. From the module settings page, configure the conditions on which the tags are
  37. inserted on a page response. Conditions exist for: page paths, user roles, and
  38. response statuses. See:
  39. * Administration » Configuration » System » Google Tag Manager
  40. * admin/config/system/google_tag
  41. The module implements the Variable API, so that settings may be separately
  42. configured by realm, thus enabling support for multiple languages and domains.
  43. If these features are needed, then review the other projects at:
  44. * https://www.drupal.org/project/variable
  45. * https://www.drupal.org/project/18n
  46. * https://www.drupal.org/project/domain_variable
  47. For development purposes, create a GTM environment for your website and enter
  48. the 'environment ID' on the 'Advanced' tab of the settings form.
  49. * https://tagmanager.google.com/#/admin
  50. For additional data layer management, consider the dataLayer module. It supports
  51. the default name for the data layer. To use a non-default name, apply a patch to
  52. the code from that module module.
  53. * https://www.drupal.org/project/dataLayer
  54. TROUBLESHOOTING
  55. ---------------
  56. If the JavaScript snippets are not present in the HTML output, try the following
  57. steps to debug the situation:
  58. * Confirm the snippet files exist at public://google_tag/ (on most sites this
  59. equates to sites/default/files/google_tag/).
  60. If missing, then recreate the snippet files by clearing all caches (e.g. from
  61. the command line using drush or from the performance administration page) OR
  62. by submitting the module settings page. The need to do this may arise if the
  63. project is deployed from one environment to another (e.g. development to
  64. production) but the snippet files are not deployed.
  65. * Enable debug output on the 'Advanced' tab of the settings page to display the
  66. result of each snippet insertion condition in the message area. Modify the
  67. insertion conditions as needed.
  68. If you retain the default configuration setting to 'Include the snippet as a
  69. file', then the Google 'verification' bot will report that the site is NOT setup
  70. to use the Tag Manager. This report is a FALSE POSITIVE as the bot only checks
  71. for inline code on the script tag. It does not load the snippet file and inspect
  72. the code therein. Instead of relying on this bot, check whether the GTM snippets
  73. are loaded as a result of the snippet added by this project.
  74. MAINTAINERS
  75. -----------
  76. Current maintainer:
  77. * Jim Berry (https://www.drupal.org/u/solotandem)