Help needed to over write page url for Google analytics?

Bronze Contributor
Bronze Contributor
Help needed? I'm trying to over write the default page urls for a few pages so these are more user-friendly in Google Analytics. Example: I've set up an Extension using "Set Data Values" and set the pathname and url variables to "/passenger_details" so this appears as the url in Google Analytics. The conditions for this to overwrite current variables is set as "url contains" and the actual page url. Have published and can see the extension in the utag but Google Analytics still showing the old url and not my new virtual name. Any ideas what I am doing wrong.?
1 REPLY 1

Help needed to over write page url for Google analytics?

Gold Contributor
Gold Contributor
Hi Andrew, If I understand the question correctly, you are attempting to overwrite the Page Name (defaults to URL) in Google Analytics with a custom name. The best way to do this is to create a Set Data Values extension, setting the desired name in a variable ("/passenger_details" from your question), not in the Tealium pathname or URL. You can either use an existing variable, or create a new one just for this purpose. Then, like you have done, set a condition where this variable is populated on the desired page. Once this Extension is created, go into the Google Analytics tag and edit the Mapped Data Sources. Select your new variable under the Data Sources dropdown, and click on the Select Destination button. Select Page Name (Override Default) and click on Save. Finally publish these changes and you should start to see the desired name show in the "utmp" query string parameter. Please let us know if you need additional information on this process, or require additional assistance. Thank You, Andrew Rose Services Manager
Public