Skip to content

Conversation

@joe-ayoub-segment
Copy link
Contributor

What does this PR do?

Makes the GTM domain configurable for the GTM Classic web destination.

Are there breaking changes in this PR?

NO.

Testing

  • Testing completed successfully using staging environment

Destination instance
https://app.segment.build/joe-ayoub-segment-stage/destinations/google-tag-manager/sources/gtm_test_3/instances/6989db2527c15b15e1c5d48a/configuration

Version pinned here.
https://github.com/segmentio/analytics.js-versions/commit/78a95bde128ad548071456cbbda675ec1d47145f

With custom URL configured.
image

Default behaviour, without custom URL configured.
image

Note this fixes an issue which caused a SEV 3. inc-sev3-17182-gtm-events-not-flowing-after-domain-change-2026-02-06

Existing Unit Tests

Since the existing unit tests for several integrations are not in good shape, developers are expected to fix
them for the integration they are working/touch on.
Please ensure the following before submitting a PR:

  • Fixed all the existing unit tests for the integration touched.

Any background context you want to provide?

Is there parity with the server-side/android/iOS integration components (if applicable)?

Does this require a new integration setting? If so, please explain how the new setting works

Links to helpful docs and other external resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants