Category interest
Opened 3 products of one category in a visit and did not buy — bring them back to the category.
in one session the visitor opened 3 different products of the same category, and there is no order.
“Picked for you: <category>” — back to the category.
What the site needs to do
The code goes on the product page. The site fills in the product ID and the ID, name and path of its category.
<script>
(function () {
// Fill these from the product page template (escape the values as JSON)
var product = { id: 'SKU-1042' };
var cat = { id: '17', name: 'Laptops', url: '/catalog/laptops/' };
// Unique product pages of this category in the session (sessionStorage lives until the tab is closed)
var key = 'ntx_cat_' + cat.id;
var seen;
try { seen = JSON.parse(sessionStorage.getItem(key) || '[]'); } catch (e) { seen = []; }
if (seen.indexOf(product.id) === -1) seen.push(product.id);
try { sessionStorage.setItem(key, JSON.stringify(seen)); } catch (e) {}
if (seen.length === 3) { // exactly on the 3rd unique product — once per session
window.notirixTrigger('trg_cat', {
cat_name: cat.name,
cat_url: location.origin + cat.url
}, 24); // at most once a day
}
})();
</script>For Bitrix: fill in the values in the product template with json_encode, e.g. name: <?= json_encode($sectionName, JSON_UNESCAPED_UNICODE) ?>, where $sectionName is the infoblock section name.
Segment
Audience → Segments → “Create Segment”
Trigger · Category interesttrg_cat → = equals → 1No other rules are needed. Right after creation “Preview Audience” shows 0 — that is expected: the flag appears once the trigger fires on the site.
Message template
Messages → Templates → “New Template”
Trigger · Category interest{{ tag.cat_name | default: "Products" }}: picked for youHave a look at the best sellers and new arrivals{{ tag.cat_url | default: "https://example.com/catalog/" }}remindersJourney settings
Journeys → “New Journey” → “Settings”
Trigger · Category interestTrigger · Category interestpurchasetrg_cat : 01 Minutes1, Period 1 daysJourney steps
Entrance
└─ Wait: 1 Hours
└─ Time Window: Mon–Sun, 10:00–21:00
└─ Yes / No Branch: Tag equals value · trg_chk = 1
├─ Yes
│ └─ Tag User: trg_cat = 0
│ └─ Exit
└─ No
└─ Push Notification: “Trigger · Category interest”
└─ Tag User: trg_cat = 0
└─ Exit1 Hours10:00–21:00. Timezone: the time zone of your audience.Tag equals value. Tag key trg_chk, Tag value 1. The Yes branch goes left, No goes right.trg_cat, Tag value 0Trigger · Category interesttrg_cat, Tag value 00.When you are done, click “Save” and then “Activate”. On activation Notirix checks the graph: every node is connected, the template is selected, the segment exists. All problems are listed in one message.
What happens in different situations
purchase event → leaves the journey, no pushVariations
Another threshold
To fire on 4–5 products, change seen.length === 3 in the site code.
Another wait
One hour is a trade-off. A shorter wait converts better, but is more likely to reach someone who is still browsing the site.
Comparison without purchase →