Home Audience Targeting
👥

Audience Targeting

By Darren Chan and 2 others
• 11 articles

Traffic Source Targeting

Traffic source targeting lets you show different campaigns based on where your visitors come from—like Google Ads, Instagram, or a partner’s website. It helps you tailor your message depending on the source—for example, offering a discount to users from an ad campaign or welcoming visitors from a partner’s blog with related content. Note: We use the "referrer" to determine the visitor’s traffic source. With PageUni apps, setting up traffic source targeting is quick and easy. You can define source rules with just a few clicks. Check out this guide to learn how to add a traffic source targeting rule to your campaign. Once you’ve added the targeting rule, you can set how it checks the traffic source. Traffic source targeting uses targeting rule conditions to define when the rule should apply. Learn more here. Traffic source targeting A traffic source targeting rule is made up of one or more condition groups. These groups use OR logic—if any group passes, the targeting rule is matched. Inside each group, conditions use AND logic—all conditions must be met for that group to pass. Here are a few real-world examples to help you better understand how it works. Example 1: The visitor’s traffic source must include "google.com." This is typically used to show campaigns only to visitors coming from Google pages, like a Google search results page. Example 1 The following traffic sources will pass the targeting rule: - https://www.google.com/ - https://google.com/ The following traffic sources will not pass the targeting rule: - https://www.facebook.com/ - https://reddit.com/ Example 2: The visitor’s traffic source must end with "example.com" and must not start with "blog.example." This lets you filter traffic from a specific site, so the campaign only shows to visitors coming from sources other than "blog.example.com." Example 2 The following traffic sources will pass the targeting rule: - https://www.example.com/ - https://example.com/ - https://video.example.com/ The following traffic source will not pass the targeting rule: - https://blog.example.com/ Example 3: The visitor’s traffic source must contain either "google.com" or "instagram.com." This is commonly used when you’re running ads on both Google and Instagram, and want to target visitors coming from those campaigns. In this setup, there are two condition groups connected by OR. The rule is matched if either group meets all of its conditions. Example 3 The following traffic sources will pass the targeting rule: - https://www.google.com/ - https://google.com/ - https://www.instagram.com/ - https://instagram.com/ The following traffic source will not pass the targeting rule: - https://www.facebook.com/ - https://reddit.com/

Last updated on May 27, 2025

Current Page URL Targeting

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

Last updated on May 24, 2025

Cookie Value Targeting

Cookie value targeting lets you show campaigns based on specific cookie values stored in a visitor’s browser—such as login status, membership level, or values set by other marketing tools. This helps you deliver highly personalized campaigns—for example, showing exclusive content to logged-in users or offering a VIP discount to returning customers with a specific tag. With PageUni apps, setting up cookie value targeting is simple and flexible. You can create cookie-based rules in just a few clicks. Check out this guide to learn how to add a cookie value targeting rule to your campaign. Once you’ve added the targeting rule, you can setup how it checks the cookie value. Cookie value targeting uses targeting rule conditions to decide whether the rule should apply. Check this article to learn more. Cookie value targeting A cookie value targeting rule includes one or more condition groups. These groups follow OR logic—if any group passes, the rule is matched. Within each group, conditions follow AND logic—all must be met for the group to pass. Here are a few real-world examples to help you better understand how it works. Note: The cookie key used in the example—like "user-auth-token"—is just for reference. Be sure to replace it with the actual cookie key used on your site. Example 1: The visitor’s "user-auth-token" cookie value must not be empty. This is typically used to check if the visitor is logged in, so you can show campaigns only to logged-in users. Example 1 As long as the "user-auth-token" cookie has a value, it will pass the targeting rule. If the cookie value is empty or not set at all, it will not pass the rule. Example 2: The visitor’s "vip-level" cookie must not be empty and must be greater than or equal to 3. This is typically used to check if the visitor is a VIP user at level 3 or higher, so you can show campaigns only to those users. Example 2 As long as the "vip-level" cookie value is a number greater than or equal to 3, the targeting rule will pass. In all other cases—such as if the cookie doesn’t exist or the value is 2—the rule will not pass. Example 3: The visitor’s "favorite-products" cookie must contain the product ID "pidxxxx", or their "products-in-cart" cookie must include it. This setup is helpful when you want to show a campaign to users who’ve shown interest in a specific product—helping increase the chances of a purchase. In this setup, there are two condition groups linked by OR. If either group meets all its conditions, the rule applies. Example 3 The following cookie values will pass the targeting rule: - favorite-products: pidxxxx,pidyyyy,pidzzzz products-in-cart: [empty] - favorite-products: [empty] products-in-cart: pidxxxx,pidyyyy,pidzzzz The following cookie values will not pass the targeting rule: - favorite-products: [empty] products-in-cart: [empty] - favorite-products: pidyyyy,pidzzzz products-in-cart: pidyyyy,pidzzzz

Last updated on May 24, 2025

HTML Element Targeting

HTML element targeting lets you show campaigns based on specific content on the page—like an “Add to Cart” button, a banner, or a custom element added by your developer. This gives you full control over when and where your campaign appears. For example, you can show different campaigns on pages with the same URL, so visitors only see what’s relevant to them. With PageUni apps, setting up HTML element targeting is simple—no coding required. Check out this guide to learn how to add an HTML element targeting rule to your campaign. Note: To set up HTML element targeting, you’ll need to enter the CSS selector of the target HTML element. Click here to learn how to find it. Once you’ve added the targeting rule, you can setup how it checks the HTML element. HTML element targeting uses targeting rule conditions to decide whether the rule should apply. Check this article to learn more. HTML element targeting An HTML element targeting rule includes one or more condition groups. These groups follow OR logic—if any one group matches, the rule applies. Inside each group, conditions follow AND logic—all conditions in the group must be true for it to pass. Here are a few real-world examples to help you understand how it works. Example 1: The HTML element selected by the CSS selector #blog-title should have a content type of Text and contain the word "Hat". This is typically used to check if a blog post title includes the word "Hat," so you can show a campaign for hat products on those pages. Example 1 The following HTML elements will pass the targeting rule: - <h1 id="blog-title">All About Women's Hats</h1> - <h1 id="blog-title">How to Pick Hats for Small Heads</h1> The following HTML elements will not pass the targeting rule: - <h1 id="blog-title">Tips for choosing the right T-shirt</h1> - <h1 id="blog-title">Top T-Shirt Print Designs</h1> Note: If the page doesn’t have an HTML element that matches the CSS selector #blog-title, the targeting rule won’t be triggered. This applies to all HTML element targeting rules. Example 2: The HTML element selected by the CSS selector .product-rating should have a content type of Number and a value greater than 4.5. At the same time, the element selected by .comment-count should also be a Number and greater than 2,000. This setup is typically used to identify products that continue to receive high ratings (above 4.5) even after more than 2,000 reviews—so you can show campaigns like a “Popular Pick” label or a limited-time promotion to new visitors. Example 2 The following HTML elements will pass the targeting rule: - <div class="product-rating">4.6</div> <div class="comment-count">2186</div> - <div class="product-rating">4.9</div> <div class="comment-count">2598</div> The following HTML elements will not pass the targeting rule: - <div class="product-rating">4.5</div> <div class="comment-count">2186</div> - <div class="product-rating">4.2</div> <div class="comment-count">2186</div> - <div class="product-rating">4.9</div> <div class="comment-count">1598</div> - <div class="product-rating">Great</div> <div class="comment-count">2598</div> Example 3: The HTML element selected by the CSS selector .product-brand should have a content type of Text and be equal to either "Brand A" or "Brand B". This setup is typically used to detect whether the current product belongs to a specific brand, so you can show targeted campaigns just for those brands. In this setup, there are two condition groups linked by OR. If either group meets all its conditions, the rule applies. Example 3 The following HTML elements will pass the targeting rule: - <div class="product-brand">Brand A</div> - <div class="product-brand">Brand B</div> The following HTML elements will not pass the targeting rule: - <div class="product-brand">Brand C</div> - <div class="product-brand">A Brand</div>

Last updated on May 24, 2025

Store Data Targeting

Store data targeting lets you show campaigns based on dynamic store-level data—such as cart total, product price, product tags, customer tags, total customer spend, or whether the visitor is logged in. This allows you to deliver highly relevant campaigns—for example, offering a discount only to visitors whose cart total is above a certain amount, or showing a special deal to customers tagged as "VIP". With PageUni apps, setting up store data targeting is simple and flexible. You can choose from various store data fields and define rules in just a few clicks—no coding needed. We offer a variety of store data fields to support your targeting needs, including attributes related to products, collections, customers, and carts. Check out this guide to learn how to add a store data targeting rule to your campaign. Once you’ve added the targeting rule, you can set how it checks the store data. Store data targeting uses targeting rule conditions to determine whether the rule should apply. Check out this article to learn more. Store data targeting Store data targeting includes one or more condition groups. These groups follow OR logic—if any group matches, the rule applies. Within each group, conditions follow AND logic—all conditions must be met for the group to pass. Here are a few real-world examples to help you see how it works in action. Example 1: The visitor must be a logged-in customer. This is typically used to show campaigns only to users who are signed in. Example 1 If the visitor is logged in, the targeting rule will pass. Otherwise, it will not pass. Example 2: This setup includes three store data conditions that must all be met: 1. The customer’s total spend is greater than 1000 2. The product on the current page is available 3. The product’s price is greater than 100 This targeting rule is typically used to show a promotional campaign on certain products to customers who have already spent a significant amount in your store. Example 2 The following store data will pass the targeting rule: - customer’s total spend: 2000, product is available, product price: 150 - customer’s total spend: 1100, product is available, product price: 110 The following store data will not pass the targeting rule: - customer’s total spend: 1000, product is available, product price: 150 - customer’s total spend: 1100, product is not available, product price: 110 - customer’s total spend: 2100, product is available, product price: 99 Example 3: The product on the current page must either have a price greater than 1000 or an inventory quantity greater than 100. This setup is helpful when you want to run promotional campaigns for high-priced items or products with a large inventory. In this setup, there are two condition groups connected by OR. If either group meets all of its conditions, the rule will apply. Example 3 The following store data will pass the targeting rule: - product price: 1500, product inventory quantity: 200 - product price: 999, product inventory quantity: 101 - product price: 1000.5, product inventory quantity: 50 The following store data will not pass the targeting rule: - product price: 1000, product inventory quantity: 100 - product price: 500, product inventory quantity: 99

Last updated on May 25, 2025