How to show campaigns on specific pages or products
By default, campaigns show on all pages of your store. Use the Page URL display rule to control which pages the campaign appears on.
Where to find it
- Go to the Campaigns page in the 1ClickPopup app
- Find your campaign and click Campaign settings
- Scroll to Targeting and click Page URL to expand the section
- Select Show or hide based on page URL
This adds your first rule. Click Add URL to add more. A new rule defaults to Equals, so pick the operator you need from the dropdown.
Show only on the homepage
Add a Page URL rule and select Is homepage from the operator dropdown. No text input needed – this targets your store's homepage automatically.
Page URL operators
Each Page URL rule has an operator dropdown with six options:
- Equals – the full page URL must match exactly, including
https://and your domain (e.g.,https://yourstore.com/collections/sale) - Does not equal – the full page URL must not match exactly
- Contains – the full URL includes the text anywhere (e.g.,
/productsmatches any product page) - Does not contain – the full URL does not include the text
- Is homepage – matches your store's homepage only (no text input needed)
- Is not homepage – matches every page except the homepage
Show on specific pages
Use Contains with a path segment to target specific types of pages:
- All collection pages –
Contains>/collections - A specific product –
Contains>/products/your-product-handle - Blog posts –
Contains>/blogs - Cart page –
Contains>/cart
Hide on specific pages
If you want the campaign to show on most pages but hide it on a few, use Does not contain to exclude specific pages while showing the campaign everywhere else.
For example, to hide the campaign on your cart page, add a rule with Does not contain > /cart .
Multiple rules: Match any vs. Match all
When you add more than one Page URL rule, use the Match any / Match all toggle at the top to control how they combine:
- Match any – the campaign shows if the page matches any of your Equals, Contains or Is homepage rules, and none of your Does not equal, Does not contain or Is not homepage rules exclude it
- Match all – the campaign shows only if the page matches all of the rules (AND logic)
For example, to show the campaign on both your collections page and your cart page, add two Contains rules (/collections and /cart ) and set the toggle to Match any.
Common mistakes
- Using "Is homepage" alongside other URL rules with Match all – a page can't be the homepage and also match a rule like Contains >
/products, so the campaign usually shows nowhere. With Match any, the rules work as OR – the campaign shows on the homepage or on any page that matches your other rules - Entering only a path with Equals – Equals compares the full URL, so
/carton its own never matches. Use Contains for paths
Tip
If you want the campaign on all pages, don't add any Page URL rules. Campaigns show on every page by default.