Implementing Custom Targeting Rule

Custom targeting rule is an interesting way to display a particular notification only to specific audiences on your site.

You can create notifications and show them in realtime depending on the customer’s sign up date, last login or purchased item, current shopping cart value, current plan, search items, selected items or usage metrics.

How to set up custom targeting rule?

To implement custom targeting rule, you just send keys and respective values via the javascript and filter those in the rules section while creating notifications.

Add this extra parameter in the javascript api,

notify_visitors.ruleData = {'key1' : 'value1', 'key2' : 'value2'};

custom rule integration code

In your dashboard, you can create a notification and assign “Custom Rule” in “Targeting Rules” section.

Use the same exact expressions which you passed in the javascript api.

customer targeting rule

Thats it! You are ready. This is just a one-time set up process.

For any queries, write to us at



Boost Your Sales Today with These Top-Rated Shopify Apps

Automated Emails

Save time and increase sales with automated emails.

Users Top


Abandoned Cart Recovery

helps you recover lost sales by sending automated.

Best for shops


Lead Form

Use pre-designed templates for lead forms that are optimized for conversion.

Our Special


Just Herbs' Secret to Success: Email Marketing Automation Drives 25% Revenue Growth