google analytics altering link in worpress with elementor and cookiebot

50 views Asked by At

We have a issue regarding wordpress with elementor, google analytics and cookiebot installed.

Our issue is that google analytics alters urls when rejecting cookies, resulting in elementor popups not working.

Elementor owns popup rely on the url hashtag to trigger the popup (example link on button: https://url/test#popupshow), but the google analytics adds a query string to link resulting in the browser navigating (example of changed link: https://url/test?_ga=fwfiuhwe#popupshow), breaking the popup functionality.

Has anybody else encountered this issue and have a solution.

any help would be appreciated

kind regards Henrik

Tried to search for a solution with no luck.

1

There are 1 answers

1
henrik møller On

Found that the issue was in google analytics. Had to alter an option in google consent mode, deactivating altering urls.