Install
Works with Drupal: ^8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Resolves most outstanding bugs in the 8.x-1.x branch. Including all of those blocking an 8.x-1.0 stable release. And adds a whole bunch of tests.
This release, 8.x-1.x-beta3, should be the last release before a 1.0 stable release. Still working on possible resolutions to #2940811 Update field output to always be an array to allow for multivalue fields which has the potential to break existing integration with 3rd party services. Please weigh in on that issue if you're using the exposed fields feature of the module.
This release contains two changes that could potentially impact people currently using the module:
- There is now a setting to enable/disable the dataLayer variable on admin routes. It defaults to disabled for new installs. But will be set to enabled when running update.php to preserve previous behavior for existing users.
- Previous versions of the module would add third-party settings to the configuration of all fields even if the settings were uncessary. Now, the settings are only added to the field config when a field's data is exposed to the dataLayer. As a result, when you run update.php it will update existing field config to remove the uncessary settings (if present) and you'll need to re-export your configuration using `drush config:export`etc.
All other changes should not create any changes for existing users.
Contributors (25)
eojthebrave, blake.thompson, Daniel Kulbe, Webbeh, rksyravi, larvymortera, oknate, WidgetsBurritos, recrit, sorlov, Phil Wolstenholme, milos.kroulik, hngrytrl, Balu Ertl, azwart, gordon, kyberman, mrinalini9, edgar.aguilar, fgm, podarok, piggito, andypost, KurtTrowbridge, rpayanm
Changelog
Issues: 14 issues resolved.
Changes since 8.x-1.0-beta2:
Bug
- #3029357 by eojthebrave, larvymortera, oknate, WidgetsBurritos: Don't run dataLayer code on admin pages
- #3078012 by recrit, eojthebrave: Settings form ID should be namespaced to the module
- #3105978 by sorlov, eojthebrave: Datalayer third-party settings schema missing
- #3196692 by milos.kroulik, eojthebrave, hngrytrl: User related data in dataLayer inaccurate due to caching
- #3156321 by Balu Ertl, eojthebrave, azwart: Taxonomy dependency causes fatal error on config page
- #3211513 by gordon, kyberman, eojthebrave: datalayer_google_tag_snippets_alter deprecated
- #3296079 by mrinalini9, edgar.aguilar: The drupal_language variable is not multilanguage
- #2991887 by eojthebrave, oknate, podarok: dataLayer adds itself to all field configs as a dependency, even if expose = 0
- #3159152 by piggito, andypost, KurtTrowbridge: Unescape unicode characters
- #3171896 by fgm, eojthebrave: Exception page because of incorrect path.alias_manager service name
Feature
- #3102358 by Phil Wolstenholme, eojthebrave: If the field is not being included in the dataLayer then hide the 'DataLayer label' field as users won't be interested in it
Task
- #3108743 by eojthebrave, Webbeh, rksyravi: Update README.md to follow best practices and include updated information.
- #3302804 by fgm, eojthebrave: Remove use of deprecated core/underscore library
- #3095618 by rpayanm, oknate, WidgetsBurritos: Add defaultTheme in tests extending BrowserTestBase
Known issues
The module still doesn't work well with multi-value fields. See https://www.drupal.org/node/2940811. This will be fixed in the future, but will also cause changes to the structure of the dataLayer variable that may break existing integrations with 3rd part services.