-
Harnessing GA4: Eliminating Automatically Appended _gl=xxxxxxxxx Suffix from External Links
Alright, I need to figure out how to stop GA4 from automatically attaching these “_gl=xxx” tail ends to all my external links. I feel like I’ve tried everything, from disabling “click” event tracking to turning off automatic event detection, and even user-provided-data.
I even modified the js tracking code a bit, check it out:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XXXXXXXX', { 'linker': { 'domains': ['midomain.com'], 'decorate_links': false } }); </script>
I had my fingers crossed that this would turn off the tracking of external links, but no luck.
Just FYI – my site’s got no additional tagmanager configurations or any code/service that might be adding that pesky suffix to my links. When I turn off GA4, they all vanish, so I know it’s the culprit.
Any of you have a workaround I could try? I’d really appreciate it!
Log in to reply.