Google GTM html script to remove page UID

I am trying to get google analytics to report page stats and ignore the page UID ie. profile/1547965076903x475135918463539100

I am using GTM and created a custom html tag which is loaded into the site header via GTM
The code is below but doesnt work, any help appreciated

This topic was automatically closed after 70 days. New replies are no longer allowed.