Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

Can I assign a page label based on the URL?

You can use a Data Management processing rule to gather information from the URL and parse it into your page label.

Let's take a page with the URL http://www.site.com/MyPageName/, where the page label should be "MyPageName".

Warning: this is a general example and may not be applicable in all situations.

We recommend that you go into Data Management > Properties, then in the property "Page". You will be able to set the processing rule as in the example below:

image-20250218-112234.png

This processing rule allows you to set the 4th element of the URL to the property thanks to the "/" separator. The example above is taken into account only if the event is equal to "page.display".

The result will be "MyPageName".

Last updated: