Skip to content

Has anyone run into issues with Google Analytics 4 adding _gl to URLs that break links to section headers? #7617

Discussion options

You must be logged in to vote

The GA script appends the _gl and it should be responsible for the proper usage of either & or ?, so I would look for a resolution at the source where this parameter is added.

Maybe some custom script adds/removes parameters to the URL and this happens after the GA script "decides" what separator to use.
So initially there is URL/?someValue=123, then GA detects there are params, then your script removes the ?someValue together with the ? separator and then GA adds the &_gl because it didn't check the URL again before adding the new param 🤔

So probably "that's a question for Khoros and Google", as it's hard to guess what could be causing the issue.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@kamilkrzyskow
Comment options

@rachel-rigdon-sp
Comment options

@rachel-rigdon-sp
Comment options

@kamilkrzyskow
Comment options

Answer selected by rachel-rigdon-sp
@kamilkrzyskow
Comment options

@rachel-rigdon-sp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants