This article refers to a feature that is only available on some paid plans.
Audience targeting is an advanced feature that allows precise targeting of campaigns to your site visitors. With audience targeting you can do things like:
- Target campaigns to only certain pages of your site
- Display campaigns to visitors based on how they arrive on your site (i.e referred from google vs facebook)
- Display campaigns to visitors based on the number of times they’ve been on your site, or how many pages they’ve viewed on your site.
- Display messages to users based on the value of what is in their shopping cart (Currently shopify only)
- Many more, listed below.
Audience targeting replaces the old page targeting feature, introducing several new conditions and rules for more power:
This release also features support for complex boolean clauses, for especially tricky rules that contain nested conditions within groups:
- Current URL: The URL of the current page, including domain. Changes from page to page. To add multiple URLs, enter one per line.
- Referring URL: The URL of the previous page, or none if not specified. This could be an internal page, or from another domain (for example, facebook.com). Changes from page to page. To add multiple URLs, enter one per line.
- Initial URL this session: The URL of the first page, for this session. Also known as a landing page or entry page.
- Initial URL all time: The URL of the first page, for the first session the user was seen. This is the first page the user ever visited on your site.
- Traffic type: The source of the current user’s session. One of “search,” “social“, “paid“, “direct” or sometimes “unknown.”
- Cart Value (Shopify, SquareSpace, Weebly, WooCommerce, Magento 2 only): The total value of products in the visitor’s cart.
- Initial traffic type: The source of the current user’s FIRST session. One of “search,” “social“, “paid“, “direct” or sometimes “unknown.”
- Country: The country that the current user is accessing the page from. Can also be set to “is not.” Multiple country conditions can be stacked to further specify.
- Sessions count: The number of sessions this user has had on the site.
- Pageviews all time: The number of pageviews this user has had on the site across ALL browsing sessions.
- Pageviews this session: The number of pagewviews this user has had on the site for THIS browsing session.
- Device category: The user’s device type. Either desktop or mobile. Tablets are considered mobile.
- Privy campaign targeting: define which website visitor is eligible to see a campaign, based on whether they have seen, or registered for a different Privy website campaign.
Common Use Cases
- Show only to first time visitors. To only show to visitors who have never been on your site before, add a condition sessions count equals 1.
- Show only on the first pageview. To only show a campaign to visitors on the first page of a visit, add a condition pageviews this session equals 1.
- Show only to first time visitors on the first pageview: Combine the two conditions above with an AND clause.
- Show only on my homepage: Add a condition current url matches regex example\.com\/*(\?.*)?$
- Show everywhere except my homepage: Add a condition current url does not match regex example\.com\/*(\?.*)?$
- Show only if a URL parameter is specific value: Add a condition current url contains utm_campaign=my_campaign_name