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.
Only one set of snippet files is saved, although the variables that affect their contents (e.g. container ID, data layer name) may vary by realm. Create realm-specific files.
For a site not using variable realms (e.g. for i18n support), this is not an issue.
Comment | File | Size | Author |
---|---|---|---|
#2 | snippet_files_do_not_respect_variable_realm.patch | 4.38 KB | cslevy |
Comments
Comment #2
cslevy CreditAttribution: cslevy commentedHere is a patch which fixes the issue.
When saving the config I generate the language specific files like google_tag.[TYPE].[LANGUAGE_CODE].js and also the google_tag.[TYPE].js file to have it for fallback
Comment #3
cslevy CreditAttribution: cslevy commentedComment #4
solotandem CreditAttribution: solotandem commentedThanks for the patch. I've been working on a fix (similar in respects to your patch) and will commit it soon.
Comment #6
solotandem CreditAttribution: solotandem commentedPlease test the dev release.