Skip to main content

HTML element

If your URL structure does not allow you to easily target specific pages you can instead target based on a element selector. In other words check if a specific element exist on the page the visitor is browsing. This is mostly used for Audience but it could for example be used for registering final purchases if there is a unique element on that page.

Example

Create Audience step 3 In the image above we target the order page by checking for an element that has a selector that is #purchase (i.e an element with a ID of purchase).

info

The Lyftio script monitors the website so this will also work for element that loads dynamically after first page load.

tip

Always test your Goals in Preview before activating the experiment to make sure that your goals triggers as expected.