Skip to main content

How to Hide Popups on Certain Pages

Control where your campaigns appear by excluding specific page paths using targeting rules.

Written by Pallavi Joshi

Overview

There may be times when you don’t want your campaigns to appear on certain pages, such as specific product pages, checkout screens, or landing pages. You can do this easily by creating a "Hide Pages" targeting rule and applying it to your campaigns. In this guide, we'll show you how to manage these exclusions using two different methods.

There are two ways to set the targeting rule to hide popups on certain pages:

  1. Main Targeting Rules: Applicable across all campaigns (best for global exclusions).

  2. Campaign-Specific Targeting: Rules that apply only to a specific campaign.

Method 1: Using Main Targeting Rules

This method is ideal if you have a list of pages where you never want popups to show. By creating a global rule, you can apply it to multiple campaigns simultaneously.

Step 1: Access the Targeting Rules Panel

Navigate to the Campaigns section in the Alia Dashboard.

Click on Targeting Rules from the top navigation menu.

Step 2: Create the “Hide Pages” Rule

Click the "Create Rule" button.

Name the rule something recognizable, such as Hide on Pages. This is where you'll define your exclusions.

Click on save.

Step 3: Configure Page Exclusions

Under your new "Hide Pages" rule, add the following conditions:

Select "Is not on page(s)" from the dropdown menu.

Choose "By path only".

Select "Contains" and enter the page path you want to exclude (e.g., /products/123).

Click Add to include the path. You can add multiple paths like /checkout, /thank_you, or /account.

💡Pro Tip: Whenever you want to exclude more pages globally, just edit this "Hide Pages" rule. Every campaign using this rule will update automatically.

Step 4: Apply the Rule to Your Campaign

Go to the specific campaign you want to edit.

Select "Targeting in new visitors".

Select Add condition > In targeting rule or campaign.

Select the Hide pages rule you just created and click Save.

Method 2: Campaign-Specific Targeting

If you only need to hide a popup on a specific page for one particular campaign, you can set the rule directly within that campaign's settings.

Step 1: Click on "Targeting in new visitors" within the specific campaign dashboard.

Step 2: Add the following conditions:

Select "Is not on page(s)"

Choose "By path only"

Select "Contains" and enter the page path (e.g., /sale-landing-page, /products)

Click Save.

Note: If you have a long list of pages to exclude, we highly recommend using Method 1. It saves time and ensures consistency across your entire site.

What’s Next?

Now that you've configured your exclusions, you should test your campaign by visiting the excluded pages in an incognito window to ensure the popup does not appear.

Did this answer your question?