Repeat section visits
Came back to a chosen section twice in a week and did not buy — send a selection.
the visitor came to a chosen section (e.g. ready-made bundles) twice within 7 days, and there is no order.
a selection from the section or help with choosing.
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.
<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”
Trigger · Section visitstrg_section → = 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 · Repeat section visitsReady-made bundles, put together for youTried and tested sets — all that is left is to pick one{{ tag.section_url | default: "https://example.com/catalog/bundles/" }}remindersSee bundles → the same URL; Get advice → the contacts pageAdapt 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”
Trigger · Repeat section visitsTrigger · Section visitspurchasetrg_section : 01 Minutes1, Period 7 daysJourney steps
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
└─ Exit2 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_section, Tag value 0Trigger · Repeat section visitstrg_section, 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
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:
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