Scenario examples

Repeat section visits

Came back to a chosen section twice in a week and did not buy — send a selection.

Trigger

the visitor came to a chosen section (e.g. ready-made bundles) twice within 7 days, and there is no order.

Push

a selection from the section or help with choosing.

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

What the site needs to do

The code goes on every page of the section — the list and the product pages inside it. The site decides whether a page belongs to the section: by URL prefix, catalog section ID and so on.

html
<script>
(function () {
  // Is this page part of the section? A URL prefix here; the server can decide by section ID instead
  var isTargetSection = location.pathname.indexOf('/catalog/bundles/') === 0;
  if (!isTargetSection) return;

  var key = 'ntx_section';
  var now = Date.now();
  var state;
  try { state = JSON.parse(localStorage.getItem(key) || '{}'); } catch (e) { state = {}; }

  // Visits of the last 7 days
  var views = (state.views || []).filter(function (t) { return t > now - 7 * 24 * 3600 * 1000; });

  // A new visit starts after 30 minutes without section pages
  if (now - (state.lastPage || 0) > 30 * 60 * 1000) views.push(now);

  if (views.length >= 2) {
    window.notirixTrigger('trg_section', {
      section_url: location.origin + '/catalog/bundles/'   // section URL
    }, 168);                                               // at most once in 7 days
    views = [];                                            // count from zero after the trigger
  }
  try { localStorage.setItem(key, JSON.stringify({ views: views, lastPage: now })); } catch (e) {}
})();
</script>

What counts as a visit. Several section pages in a row are one visit. A new visit starts after a break of more than 30 minutes without section pages. To count every page view separately, remove the break check.

For Bitrix: it is easier to work out the section flag in the template, e.g. by the infoblock section ID, and pass it as var isTargetSection = <?= json_encode($isTargetSection) ?>;.

Segment

Audience → Segments → “Create Segment”

FieldValue
Segment NameTrigger · Section visits
GroupAND
Rules+ Tag → Tag key trg_section → = 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 · Repeat section visits
Notification TitleReady-made bundles, put together for you
Notification BodyTried and tested sets — all that is left is to pick one
Click URL{{ tag.section_url | default: "https://example.com/catalog/bundles/" }}
Image URLa section banner
Tagreminders
Action buttonsoptional: See bundles → the same URL; Get advice → the contacts page

Adapt the title and text to your section. With several sections, pass the name in a context tag (e.g. section_name) and use it in the title as {{ tag.section_name | default: "…" }}.

Journey settings

Journeys → “New Journey” → “Settings”

TabSettingValue
GeneralJourney NameTrigger · Repeat section visits
Entry RulesInclude SegmentsTrigger · Section visits
Exclude Segmentsempty
Future additions onlyOn
Exit RulesOptionMeet a certain condition
Exit when custom event condition occursOn, purchase
Tag users when they exit earlytrg_section : 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 7 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: 2 Hours
   └─ Time Window: Mon–Sun, 10:00–21:00
      └─ Yes / No Branch: Tag equals value · trg_chk = 1
         ├─ Yes
         │  └─ Tag User: trg_section = 0
         │     └─ Exit
         └─ No
            └─ Push Notification: “Trigger · Repeat section visits”
               └─ Tag User: trg_section = 0
                  └─ Exit
#NodeSettings
1WaitDelay: 2 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_section, Tag value 0
5 · YesExit—
4 · NoPush NotificationMessage Template: Trigger · Repeat section visits
5 · NoTag UserTag key trg_section, 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 journey sends them a reminder.

What happens in different situations

SituationResult
Visited the section on Monday and on ThursdayOn the second visit the site sets the flag; the push arrives 2 hours later within the 10:00–21:00 window
Opened 10 section pages in half an hourThat is one visit — the trigger does not fire
Visited on Monday and again 8 days laterThe first visit is outside the 7-day window — counting starts over
Visited twice again 3 days after the pushThe trigger is not sent: the “at most once in 7 days” limit applies

Variations

A second push if not clicked

If the visitor did not click the push, you can send a second one 3 days later — for example, offering a consultation. The chain after the push:

text
Wait 3 Days → Time Window
  → Yes / No Branch: “Message was clicked”
      Yes → Tag User trg_section = 0 → Exit
      No  → Push Notification #2 → Tag User trg_section = 0 → Exit
NextRepeated brand search →