Depending on how your server is set up, the different pages on your site can be referenced in either one of these cases or both:
The difference is the trailing / at the end. In most cases, this is usually the same page showing the same content, however, since this is not necessarily the case, Hotjar doesn't assume it is since it could potentially skew results such as Heatmaps.
This is usually a problem when you set up a Heatmap using the following URL:
But your site or external sites are linking to this version of the URL:
How to target both URLs using a Regular Expression
To target both examples shown above, use this Regular Expression:
If the URL you want to target has a query string or fragment, you'll need to use a slightly more complex expression:
This regular expression will match visits if the URL ends with '/products' OR '/products/', as well as '/products?name=value' and '/products/#fragment'.
If you are setting up a Heatmap, you will notice Hotjar asks you for a Screenshot Page URL. Enter the URL of one of the variations, such as www.example.com/products.