Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This fixes some missed upgrade paths for consent mode. Please refer to the 2.0.3 release notes, including an FAQ on Consent mode, for all the changes since 2.0.2!
This is a feature and bug update to the google tag ecosystem
All customers are recommended to update to this version. Starting March 6, 2024 tags that use certain features from google that require consent mode will not work properly unless the code is set as on by default. See this article from Google for more information.
NOTE Although not listed in the project info file, this release requires Drupal 8.7.x due to reference to the FileSystemInterface::CREATE_DIRECTORY constant.
Feature requests:
Recharacterize the base uri setting as the parent uri.
Add the container as a parameter to alter hooks.
Separate the container settings from insertion conditions.
Enable more insertion conditions on a container.
Add condition plugin logic to containers.
Add domain and language conditions.
Feature requests:
Enable multiple containers on a page request.
Add the container as a parameter to alter hooks.
Separate the container settings from insertion conditions.
Enable more insertion conditions on a container.
Add domain and language conditions.
Expose hooks for other modules to implement additional conditions.
Tasks:
Enhance automated tests with more user interface assertions.
This is intended to be final release on 7.x-1.x branch.
Feature requests:
Use container settings from the variable realm with greatest weight. [requires variable_realm]
Add automated tests.
Delete the snippet directory before recreating snippet files.
Recreate snippet files on cache clear (not just on cron).
Bug fixes:
Hide admin message from non-admin users.
Restore $GLOBALS['conf'] after asset creation. [requires variable_realm]
The module does NOT implement the Variable API, but does include a realm setting
so that containers may be separately configured by realm, thus enabling support
for multiple languages and domains.
Bug fixes:
Do not override $GLOBAL['conf'] during cron run. [requires variable_realm]
Change prefix on url variable in call to t() in hook_requirements().
Check for Windows OS in _google_tag_is_executable().
Add 'defer' attribute to script tag.
Test existence of posix functions before call.
Remove iframe content and title attribute from noscript tag.
Test $status before call to strpos(). [PHP 7.3]
Changes since previous release:
Add executable check to snippet directory preparation with consideration given to filesystem ACLs.
Revise message text, restrict message display to admin users, and log error messages.
Changes since previous release:
Add executable check to snippet directory preparation with consideration given to filesystem ACLs.
Revise message text, restrict message display to admin users, and log error messages.
Remove iframe content on noscript snippet.
NOTE: This release includes one occurrence of PHP 5.5 syntax. If your site is not running on this or a newer PHP release, then apply this commit to your code base to change this one occurrence to syntax allowed with PHP 5.4.
NOTE: Due to a known bug during an update to releases 1.2-rc3 or 1.2 (in which the variable_realm module is not enabled), the snippet directory is not created. A simple workaround for this bug is to disable and enable the module (uninstall is not necessary).
If disable and enable steps are not practical (e.g. deploying to many sites), then make reference to the first commit after the 1.2 release in your code deployments. This commit solves the problem with creating the snippet directory. Its commit hash is '600d2f75a01b78954e660c16e70131fa1f2c68ca'.
NOTE: Due to a known bug during an update to release 1.2-rc3 (in which the variable_realm module is not enabled), the snippet directory is not created. A simple workaround for this bug is to disable and enable the module (uninstall is not necessary).
Features:
Enhance clean up actions in hook_uninstall(): remove JS files and any realm variables.
Move JS files to 'google_tag' directory that is not flushed after 30 days without changes.
Allow for remote stream wrappers like S3 and App Engine.
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).