Scenario examples

Category interest

Opened 3 products of one category in a visit and did not buy — bring them back to the category.

Trigger

in one session the visitor opened 3 different products of the same category, and there is no order.

Push

“Picked for you: <category>” — back to the category.

ℹ️
Before you start, complete the base setup — it is shared by all scenarios.

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.

html
<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>
⚠️
Pass the template data as JSON instead of pasting it into quotes: a quote in a category name would break the 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”

FieldValue
Segment NameTrigger · Category interest
GroupAND
Rules+ Tag → Tag key trg_cat → = equals → 1

No 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”

FieldValue
Template NameTrigger · Category interest
Notification Title{{ tag.cat_name | default: "Products" }}: picked for you
Notification BodyHave a look at the best sellers and new arrivals
Click URL{{ tag.cat_url | default: "https://example.com/catalog/" }}
Image URLoptional
Tagreminders

Journey settings

Journeys → “New Journey” → “Settings”

TabSettingValue
GeneralJourney NameTrigger · Category interest
Entry RulesInclude SegmentsTrigger · Category interest
Exclude Segmentsempty
Future additions onlyOn
Exit RulesOptionMeet a certain condition
Exit when custom event condition occursOn, purchase
Tag users when they exit earlytrg_cat : 0
Other checkboxesOff
Re-entryOptionYes, after a certain amount of time: 1 Minutes
ScheduleStart / EndImmediately when activated / Never ends
FrequencyRespect the app frequency capOn
This journey's limitOn: Max pushes 1, Period 1 days
When the limit is reachedSkip the push
ℹ️
The values are the same for every example scenario — only the name, the segment, the flag tag and the period of the journey limit differ. Why these values were chosen is explained in the base setup.

Journey steps

text
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
                  └─ Exit
#NodeSettings
1WaitDelay: 1 Hours
2Time WindowAllowed days: all 7 (Mon–Sun). Time range: 10:00–21:00. Timezone: the time zone of your audience.
3Yes / No BranchCondition type: Tag equals value. Tag key trg_chk, Tag value 1. The Yes branch goes left, No goes right.
4 · YesTag UserTag key trg_cat, Tag value 0
5 · YesExit—
4 · NoPush NotificationMessage Template: Trigger · Category interest
5 · NoTag UserTag key trg_cat, Tag value 0
6 · NoExit—
⚠️
Both branches must be connected, otherwise the journey cannot be activated. In both branches the last step before the exit resets the flag tag to 0.

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.

💡
Why the branch. If the visitor has already moved on to checkout, the abandoned checkout reminder matters more. The category push does not use up their frequency cap.

What happens in different situations

SituationResult
Viewed 3 products and ordered 20 minutes laterThe purchase event → leaves the journey, no push
Viewed 3 products and is at checkout an hour later“Yes” branch: the flag is reset without a push, the abandoned checkout journey sends the reminder
Viewed 3 products at 20:30After the hour of waiting the window is closed — the push arrives at 10:00 the next day
Viewed 3 products of another category the same dayThe trigger is not sent: the “once a day” limit applies to the flag as a whole, not to the category

Variations

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.

NextComparison without purchase →