Sarbacane becomes Positive User

Flashing tab notifications: recapture dsistracted shoppers

Reclaim attention when contacts switch tabs by flashing a custom browser-tab message tailored to defined and anonymous visitors.

Goal
Improve conversion and sales
Improve personalization and the customer experience
Improve deliverability and engagement
Industries
B2C
E-commerce
Channels
Automation

Description

A shopper has items in their cart. They open a new tab. The page goes quiet. This is where most stores give up. This use case does not. The moment a visitor switches away from a cart page, the browser tab title starts flashing a short, personal message. Known contacts see a friendly nudge tied to their session. Anonymous visitors see a subtle curiosity hook. The flashing continues until they come back. When they return, the tab restores to normal and an event is logged that can trigger a follow-up, like a pop-up with a discount code. The whole thing runs on a lightweight JavaScript snippet. No emails, no SMS, no delay. Just a gentle reminder in the one place they are definitely looking: their browser tabs.

Implementation Effort
Impact on a goal

Take it on the next level...

Creative Assets like (ready HTML)
Recommended Data Structure
Code Snippets
Cheat Sheet
Automation templates
Unlock the full use-case

Unlock 40 Use Cases

Thank you, your message has been sent!
There was an error sending the form!

Outcome

Re-engage visitors the moment they switch away from a cart page
Reduce cart abandonment with a zero-friction, non-intrusive nudge
Personalize for known and anonymous visitors without any extra setup

How it works in practice

A shopper lands on the cart page. The automation detects the URL contains cart and injects a small JavaScript snippet. For now, nothing visible happens. The shopper gets distracted and clicks over to another tab. The moment they do, the browser tab title for the store starts flashing. A known contact sees: Thinking about your cart? An anonymous visitor sees: Psst your cart misses you! The message alternates with the original page title once per second. The shopper glances at their tab bar, sees the flashing message, and clicks back. The original title is restored immediately. An event is logged. From there, the event can trigger anything from a discount pop-up to a follow-up automation. All of this happens without a single email, push notification, or interruption to whatever they were doing in the other tab.

1

Page detection on cart pages: The automation starts with a Page Visit trigger configured to match URLs containing cart. This ensures the flashing tab notification only activates on high-intent pages where recovery is most valuable.

2

Contact type check: A filter checks whether the contact is defined, meaning they have an email attribute in their profile, or anonymous. This single check powers the message personalization for each visitor type.

3

JavaScript injection via Send Code: The Send Code module injects a lightweight JavaScript snippet that listens for the browser's tab visibility change event. The snippet includes the original page title, the flash message for that visitor type, favicon URLs, and a configurable interval duration set to 1 second by default.

4

Tab visibility monitoring and message flashing: When the user switches to another tab, the script detects document.hidden = true and starts alternating the browser tab title between the original page title and the flash message. For defined contacts: an emoji and a friendly reminder about the cart. For anonymous visitors: a playful curiosity nudge. The flashing continues until the user returns.

5

Return detection and event logging: When the user returns to the tab, the script stops the interval and restores the original page title and favicon. A Flashing tab popup event is logged in User.com, which can then trigger follow-up automations such as a pop-up offering a discount code to complete the purchase.

How to set it up

Implementing use case automation involves several key steps and tools. Here's a comprehensive ressources to get you started:

Used modules

Automations

Marketing on a new level with a beautiful visual, drag & drop creator.

Page visit
Filters
Send Code

Pop-ups (optional)

Show a thank-you pop-up with a discount offer when the visitor returns after a flashing tab notification.

Prerequisities

Create a Global Variable named code_pixel with the URL to your blank pixel image.

Recommanded data structure

Contact Attributes

A contact attribute is a data field stored on the contact's profile, used for segmentation, personalization, reporting, and automation.

Attribute name
Attribute type
email
(standard) string

Global variables

Global variables store values that can be used across automations and campaigns without hardcoding them in each flow.

Global variable name
Global variable type
code_pixel
string

Warning

Things to take into consideration when leveraging this use-case

Before you go live

Implement scripts using Append to HTML = false and custom message handling in Positive User widget:

- add onPayloadReceived function in the civchat object
- remove IMG elements from the send code modules
- turn Append to HTML to false

Customer review

Trusted by fast-growing teams

“Thanks to Positive User, we not only significantly expanded our audience base, but also streamlined communication and automated many tasks that previously consumed a lot of time. This tool truly supports our sales and digital strategy.”

Somfy, Equipo de E-commerce de Somfy
Read the full customer story

Turn this use case into action

Start from a proven use case designed to help you engage faster, with relevance and impact.

More ways to engage your audience

Reward double opt-in with a discount

Compliant two-step opt-ins that deliver an instant discount and lift confirmation rates.

Announce new features in-app

In-app messages that surface new features the moment mobile users open the app.

Trigger sales actions after subscription end

Automated deal and task creation that puts sales on every expired subscription within days.