Skip to main content
Skip table of contents

Can I assign a page label based on the URL?

You can use Data Manager 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 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".

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.