Define target rules while creating a campaign.

  • Created : Dec, 31, 2019
  • Last Updated : Jan, 30, 2023

What are target rules ?

While creating any campaign, we must define the target rule for the audience. These targeting rules lay out certain conditions for whom and when must the campaigns be displayed to the users.

Let us see some of the most common targeting rules while creating any campaign :

Determine the targeting rules.
  • Basic rule: Determine the basic rules of creating a campaign.
  • Visitor Type: Display notification to specific visitor types only. Select between all visitors, new visitors, or returning visitors
  • Max limit per site visitor: Maximum times notification will show up for a visitor. If set 5, visitor will not see the notification if he has already seen it 5 times.
  • Time Delay on a page: Time after which the notification will appear on page load
  • Time spent on entire site: Total time spent on site after which notification will appear.
  • Minimum page views: Notification will appear only after visitor has done specified number of pageviews on site
  • Leave Intent targeting: This will show notification as soon as visitor is navigating away from the page.
  • Device: leave blank if you want to show on all device types.
  • Sequence: Choose from here your priority to whom you want to show the notification.
  • Show To: Determine to whom you want to show the notifications, i.e. whether you want to show the notification to all the users or to the known or anonymous users.
  • PWA: Select from here the option or the options as to where you want to show your notification,i.e. in your PWA app, TWA app, or on the website. It is a new targeting rule defined by NotifyVisitors where you have the choice to show your banner, push notifications, surveys, or lead forms on your PWA app, TWA app, or on your website.



Select the devices, browsers and operating system on which the notifications are to be sent.

            technology rule in campaign


Show notification during specific time of the day, say between 1pm and 3 pm.

                                        time of a day rule


  • Timezone: Select site visitor timezone to specify time ranges as per site visitors' timezone

Specify time ranges in 24 hours format. For example From - 13:30 to - 15:30.


Leave all options unselected if you want to show notification to all traffic source.

  • Search Engine - Shows notification if visitor comes through any of 40 major search engines. You can also specify search keywords to show notification only when visitor comes through specific search terms. Leave search terms blank to show for all search engine traffic.
  • Social Media - Shows notification if visitor comes through any of following social networking sites - facebook, twitter, linkedin, google+.
  • Direct Traffic - Show notification if visitor comes directly by typing your site URL in browser.
  • Custom Referrers - Show notification if visitor comes through specific referring sites. You can add multiple URL rules to specify multiple custom referrers.

                    Traffic source rule in a campaign


Choose the location. i.e. country or region, where you want to target the banner notifications.

                            location rule of campaign


Select the group condition for a cookie rule.

Specify the cookie name so that the respective user can see the banner notification.

  • Cookie name : Name of cookie which is dropped in users’ browser for tracking.
  • Condition : Set of rules defined to filter.
  • Value : Value assigned to corresponding query name.

          cookie name


Do you know how to get cookie name?

Please look at our blog on how to get cookie name. Click here 


 Determine the source, campaign and UTM parameters to send the banner notifications.

query params


  • Query name : Name Defines to tracking parameter. Eg: source, medium.
  • Condition : Set of rules defined to filter.
  • Value : Value assigned to corresponding query name.

Pass custom data parameters dynamically in notify visitors javascript SDK and show notifications only when specific data value rules are satisfied. For example, show discount notification if the purchase value is above $100. Please refer our detailed blog post.

                         custom rule in a campaign       


Choose how many % of new visitors will see your notification.

For Example: if you choose 5%, then only 5% of new visitors will see your notification.

sampling rule in a campaign


 You can either show the notifications to all of the selected segments or you can choose to show the notifications to users of any of the selected segments. Similarly, you can exclude all/any of the selected segments while showing the notifications.


Enter the IP address to whom you are intended to send the notifications.

                                    IP Blacklist


Ascertain the variables of integration.



Publish: This notification would only appear on pages with URLs satisfying the mentioned condition(s). You can choose from a variety of operators.

While using equals to or starts with operators, make sure the provided page URL(s) start with either HTTP:// or https://.

Goal conversions: Determine the URL that will land users on the page which determines your goal. If the user performs the desired action. You can count that actions as a conversion.

Define the above discussed target rules while creating a campaign. Target your audience on the basis of their source,location and technology. Also, analyze some other rules to achieve your goals effectively and efficiently.