Home Audience Targeting Current Page URL Targeting

Current Page URL Targeting

Last updated on May 24, 2025

Current page URL targeting lets you show different campaigns based on the specific page a visitor is viewing—like your homepage, a product page, or a collection page. This helps you deliver the campaign in the right place—for example, promoting a special offer for a specific product on its product page, or highlighting bestsellers on a collection page to guide browsing.

With PageUni apps, it's easy to set up current page URL targeting. You can also test your page URLs to make sure your rule is working correctly.

Check out this guide to learn how to add a current page URL targeting rule to your campaign.

After you add the targeting rule, you can start setting how the rule checks the URL. Current page URL targeting uses targeting rule conditions to define the matching logic. Click here to learn more.

Current page URL targeting

A current page URL targeting rule is made up of one or more condition groups. These groups follow an OR logic—if any one group passes, the rule is considered matched. Within each group, the conditions follow an AND logic—all conditions in the group must be met for that group to pass.

Let’s look at a few real-world examples to make everything above easier to understand.

Example 1: The visitor’s page URL must begin with "/collections." This is typically used to display campaigns only on store collection pages.

Example 1

The following page URLs will pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/collections/all

  • https://pageuni-timer-bar-demo.myshopify.com/collections/hats

The following page URLs will not pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat

  • https://pageuni-timer-bar-demo.myshopify.com/pages/contact

Example 2: The visitor’s page URL must begin with "/products" and contain the substring "utm_source=ig." This setup is commonly used to show campaigns to visitors landing on store product pages from Instagram ads.

Example 2

The following page URLs will pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat?utm_source=ig

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-t-shirt?utm_medium=cpc&utm_source=ig

The following page URLs will not pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat

  • https://pageuni-timer-bar-demo.myshopify.com/pages/contact

  • https://pageuni-timer-bar-demo.myshopify.com/collections/all?utm_source=ig

Example 3: The visitor’s page URL must either begin with "/products" and contain the substring "utm_source=google," or begin with "/products" and contain "utm_source=ig." This setup is commonly used when a store runs ads on both Google and Instagram, and visitors land on the product page from those campaigns.

There are two condition groups in this example, connected by OR. The targeting rule is met as long as either group matches all of its conditions.

Example 3

The following page URLs will pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat?utm_source=ig

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-t-shirt?utm_medium=cpc&utm_source=ig

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat?utm_source=google

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-t-shirt?utm_source=google&utm_medium=cpc

The following page URLs will not pass the targeting rule:

  • https://pageuni-timer-bar-demo.myshopify.com/

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-hat

  • https://pageuni-timer-bar-demo.myshopify.com/products/example-t-shirt?utm_medium=cpc&utm_source=fb

  • https://pageuni-timer-bar-demo.myshopify.com/pages/contact

  • https://pageuni-timer-bar-demo.myshopify.com/collections/all?utm_source=google

Note: You can use the URL checker at the bottom to see how this rule is working.

Check URL