Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Troubleshooting Cross-Domain Configuration with GA4 and Google Tag Manager › Reply To: Troubleshooting Cross-Domain Configuration with GA4 and Google Tag Manager
-
Setting up cross-domain tracking is indeed easier with Google Analytics 4. However, there are a few settings that could influence the behavior you are experiencing. While the GA4 does remove some of the manual setup, certain conditions must still be met for successful automatic setup. For instance, ensure that both URLs are included in the ‘Automatic Link Domains’ list in your GA4 configuration tag in Google Tag Manager (GTM). You should also verify that the measurement IDs are indeed shared between domains. Lastly, enable the ‘Decorate Forms’ configuration on both sides, as it ensures the transfer of client ID when user data is transferred from one domain to another via form submission. If these steps don’t work, consider setting up manual tagging by utilizing a ‘Referrer’ variable in GTM to capture the document.referrer and set that up in the GA4 configuration tag’s ‘Fields to Set’. Even though this seems to go against GA4’s simplified setup, the catch could be lying there. Don’t forget to test your setup using GTM’s preview mode and GA4’s debug view for better error identification.