Event tracking - removing specific query strings parameters from URLs
I'm a titch embarrassed to ask this, cause I know it's a relatively simple fix...but when I search I keep running across discussions on stripping URL query parameters which isn't what I am seeking...
When I view my Custom Report labeled "PDFs Downloads by Filename" I see strings such as:
listed in the table. Now I am reporting this under the Dimension as "Event Label" via GTM...so, how can strip out:
Thanks, T 8)
Re: Event tracking - removing specific query strings parameters from URLs
So you could use an advanced filter in GA but I prefer to clean my data in GTM prior to passing to GA whenever possible.
Simo Ahava has a walkthrough of the code needed here:
He mentions macros but that's because it's what they used to be called and can still be used.