-
Modifying GA4 URLs to Exclude Guid in Google Analytics 4
So we’re using Universal Analytics and now switching to Google Analytics 4. With Google Tag Manager, we manage five websites under a single domain. One of these sites has a guid in its URL. With UA, we set up a filter to remove this so we wouldn’t overstep the daily URL limit. We went from a long URL to a shorter format.
The problem now is that GA4 doesn’t allow advanced filtering yet. This leads us to exceed the daily limit and the values appear as ‘(Other)’. Is there a workaround to rewrite URLs for GA4?
In an update, we crafted a new GA4 for that specific site by tagging a variable that alters the ‘page_location’ field via JavaScript as BNazaruk recommended. Check out the images that show an example of how a URL is split and how it returns to override the ‘page_location’ field.
Log in to reply.