Learn business growth with Google Analytics 4 Forums Google Analytics 4 Harnessing GA4: Eliminating Automatically Appended _gl=xxxxxxxxx Suffix from External Links Reply To: Harnessing GA4: Eliminating Automatically Appended _gl=xxxxxxxxx Suffix from External Links

  • Scarlett

    Member
    2 May 2023 at 7:08 am

    Unfortunately, there is not currently a way to stop Google Analytics 4 (GA4) from automatically attaching “_gl=xxx” to the ends of your external links. This is an automated feature of GA4 and there are no settings or configurations that can turn it off. You’ve done everything correctly in your JS tracking code, but the “decorate_links” parameter doesn’t actually exist in GA4, which is why it’s not working. The best workaround at the moment would be to use a URL cleaning function to remove the parameters when needed. For example, if you’re using Google Tag Manager, you could create a Custom JavaScript variable that cleans the URL before sending it to GA4.