Adding page URLs

🎬 Rather watch a video tutorial?

There are common templates for each website and online store. You want actual user data from this template that you can use. Therefore, we advise setting up tracking for all (or just the most popular) templates on your website. In terms of eCommerce, consider:

  • Homepage
  • Product Detail Page (PDP)
  • Product Listing Page (PLP)
  • Category page
  • Cart
  • Checkout page
  • Blog

URL rule types

It is therefore at this level that optimisations are often made. When using our eCommerce subscription, it is recommended to set regular expressions. This way, you get more data from your templates, because you track all URLs that fall under this template. You can also enter exact URLs, should you have 10 products that perform best it is recommended to add all 10 under the same template.

Did you add or change URLs? Learn more about how soon you should see new data.

You can add URLs and templates in RUMvision in three different ways:

Exact URLs

Add one or more URLs of the same template you want to track and assign a page label. You will see the name of the page label within all RUMvision dashboards, so give them a clear name.

URL RegEx

Track with one line all URLs covered by a given template. We are happy to help write the regular expression for your webshop.

CSS selector

Use a CSS selector to identify a group of pages by the presence of an element, attribute and value. 

Ideally and to increase chances of matches when using CSS selectors, you should not use CSS selectors for elements that are client side rendered, or are rendered before our script will analyze your URL rules. This means that in general, it is best to not create CSS selector for elements that are client side rendered.

To actually make CSS selectors work, an element should be parsed by the browsers. Else, if will never result in a match.
We will force our RUM to track on interactive state to improve tracking. See advanced snippet settings.

options for setting up pages in rumvision

The image below shows how we have configured www.rumvision.com. Well, we don't have very many pages, but we do have several blogs that we want to track at once without adding them all. Here we use the following regular expression: ^/blog/[a-zA-Z0-9-]+/$

regulare expressions in RUMvision

Through the advanced options of a URL, you can also pause its tracking. Our snippet will only load fully on the URLs you have configured within RUMvision.

Alternatives

Besides the above, you might have specific needs. They might be answered here. If not, feel free to reach out instead.

Track everything

Don't want to set up individual URL rules, but just want to track everything? Although your data won't be grouped in a way that allows for optimal analyzing, you can set up a regular expression that will track everything. This would be as following:

  • ^/
    This is a regular expression telling the browser that every URL's pathname that starts with a slash, should be tracked.

Exclude noindex pages

You can use CSS selector to exclude pages. Add the following CSS selector rule:

  • meta[name='robots'][content*='noindex']
    Go the advanced tab and select "blocked". Any webpage where an element matching this CSS selector is found, will not be tracked