Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download google_tag-7.x-1.1.tar.gztar.gz 16.97 KB
MD5: 6ac3e77f226f11053a05a4af83ccec29
SHA-1: 463102b45b06efb4bdf0ccf8dfd96e752d92b6db
SHA-256: c36fdb8a5419e6cd5ccc8bc72c3febec3a4421e193ba2454222c9f755b31e00e
Download google_tag-7.x-1.1.zipzip 22.13 KB
MD5: 3722eaa1574ea625963f91d99b7671e4
SHA-1: bee3917cc7f9d04359420c17d809ec06453f3a5f
SHA-256: e4fab85cb593a54224b70a513c94d107eb7b0a7d4dc6ded454a6c6b6dca313e2

Release notes

NOTE: After update, visit the module settings page and save to update settings.

NOTE: If your site is not using PHP 5.4+, then please use the first commit after the 7.x-1.1 release (as the 1.1 release has a couple of instances of 5.4 syntax).

Change position of 'script' snippet to head region of page response.
- This matches current recommendation from Google.
Add the snippets to the page response in hook_page_build().
- By implementing hook_page_alter(), a contributed module can easily:
-- Alter the position and contents of each snippet.
-- Insert a snippet ahead of the script and data layers snippets.
Add setting to include snippets in page response as JS files instead of inline.
- This is the default option.
Add settings for data layer name, and whitelist and blacklist classes.
Add two alter hooks: insertion conditions and snippets.
- With the first, contributed modules can apply additional context to the insertion conditions.
- With the second, they can alter the snippets (e.g. add custom variables).
Add support for variable module.
- This in turn makes available i18n support.
Make the export of settings portable across sites.
- Use role name instead of role id.
Revise response status condition to be similar to other conditions.
- All conditions now follow the 'all except' or 'only' pattern.
- All conditions must be satisfied for the snippets to be inserted.

Issues reflected in the above changes include:

#2820017: Change position of script snippet: Change position of 'script' snippet in page response.
#2467901: Export role names in features instead of rids: Replace role IDs with role names.
#2451295: Add setting for the data layer name: Add data layer setting.
#2308667: DataLayer support?: Add settings for whitelist and blacklist classes.
#2342557: Add variable support: Add support for variable module.

Created by: solotandem
Created on: 9 Jan 2017 at 20:22 UTC
Last updated: 5 Apr 2017 at 01:38 UTC
Bug fixes
New features

Other releases