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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

solotandem created an issue. See original summary.

cslevy’s picture

Here 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

cslevy’s picture

Version: 7.x-1.x-dev » 7.x-1.1
Status: Active » Needs review
solotandem’s picture

Thanks for the patch. I've been working on a fix (similar in respects to your patch) and will commit it soon.

  • solotandem committed 5e74a4c on 7.x-1.x
    Issue #2843183: Insert snippets based on 'most likely' realm:key values...
solotandem’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Assigned: Unassigned » solotandem
Status: Needs review » Fixed

Please test the dev release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.