SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Is Google Tag Gateway (GTG) supported with the Google Analytics 4 (GA4) Web destination?

Question

Is Google Tag Gateway (GTG) supported with the Segment Google Analytics 4 (GA4) Web destination? If so, how can I update the scripts to use the new measurement path?

 

Product

Twilio Segment

 

Answer

Yes, Google Tag Gateway is supported with the GA4 Web destination. You can route both the gtag.js script and your measurement hits through your Content Delivery Network (CDN) endpoint by configuring two specific settings within your Segment workspace.

First, you can input your GTG CDN domain into the Google Custom Domain field within the GA4 Web destination settings to properly route the script. Second, you can pass the required transport_url parameter using the destination's mapping configuration to ensure measurement hits are sent to your custom endpoint.

 

Additional Information 

To complete this configuration, follow these steps within the Segment App:

  1. Navigate to Destinations and select your GA4 Web destination.
  2. In the Settings tab, locate the Google Custom Domain field and enter your GTG CDN domain. Save the changes.
  3. Switch to the Mappings tab and edit your event mappings (such as the Set Configuration Fields mapping).
  4. Add transport_url as a configuration field and set its value to your GTG measurement endpoint.
  5. Save and deploy the mapping changes, then test your implementation to confirm that both the library script and the subsequent event payloads flow through your CDN.
Have more questions? Submit a request
Powered by Zendesk