Google Tag doesn’t work with multi-domain site.

Created on 19 November 2020, over 3 years ago
Updated 22 March 2023, over 1 year ago

We have a multi-domain site and we have created the different containers with specific GTM tags in order to apply only to a specific domains. Unfortunately, after checking the option "Only the selected domains”, it is not working as expected. It only works if we check the option to allow all domains, and that is obviously not what we are looking for, because they are all being listed. We’ve tried all the listed issues but none are working for us apparently. We provide further details to be helpful.

Steps to reproduce:
• Install Domain (Multi-domain project)
• Create two different domains.
• Create a container with the condition of showing only on one domain.
• Visit the domain and confirm that the tag is not injected.

Expected behavior:
• Every domain has its unique GTM tag added to the page source.

Current behavior:
• Tags are not injected into the specific domain.
• If we select any domain, the conditions where it checks if the current domain is the one selected never goes TRUE.
• If the option used is “All domains except the selected domains” and we don’t select any domain, then the tag is being displayed in all domains.

All the patches and issues related in the past with something similar couldn’t been applied or simulate directly on the code.

💬 Support request
Status

Needs review

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024