Optimize for non-Webflow sites

Filter results by page URL

Updated

Track performance across multiple pages using a custom attribute.

If your optimization runs on more than one page, you can use a custom attribute to filter your results by the page URL. This helps you drill down into performance insights at the page level — so you can see how each variation performs on specific pages.

Add the page path to your global code

To make page-level filtering possible, you’ll need to add a line of JavaScript to your Optimize site's global JavaScript code in Account settings. This line captures the page path whenever someone views a variation:

intellimize.setAttributes('pageview', { 'Page Path': window.location.pathname });

Note

If you already have other global code, just add this line at the bottom — it won’t interfere with existing logic.

Add “Page Path” as a custom attribute

After updating your global code, add a custom attribute named exactly the same as defined in your JavaScript — Page Path. This tells Optimize to recognize and store the page-level data for filtering.

Learn how to add the “Page Path” attribute in Account settings.

Filter your results by page

Once your Page Path attribute starts collecting data, you can use it as a filter in your optimization results to focus on performance at the page level.

Learn how to filter optimization results.

Good to know

Filters won’t appear in your dashboard until Optimize collects data for the new attribute.