Skip to content
MaxLTV Docs

Docs / On-site messages

On-site messages

Banners and popups shown to subscribers while they are on your store: payment issues, card updates, reactivation and upsell offers. How to turn them on, how they are styled, and what to check when one is not appearing.

What runs on your store

Two Shopify theme components, working together:

ComponentTypeWhat it does
MaxLTV Behavior TrackerApp embedIdentifies the subscriber and records on-site behaviour
MaxLTV Message BannerSection blockRenders whichever campaign the subscriber qualifies for

The tracker is required. Without it there is no way to tell a subscriber from an anonymous visitor, so nothing can be targeted and nothing will show.

Turning them on

  1. In Shopify, go to Online Store, Themes, Customize.
  2. Under App embeds, switch on MaxLTV Behavior Tracker.
  3. Add the MaxLTV Message Banner block to your header section.
  4. Click Save.
Shopify theme editor App embeds panel, with the Max LTV Behavior Tracker embed and its toggle circled, and the app embeds icon circled in the top toolbar
App embeds live behind the icon circled at the top, not under Theme settings. The tracker appears under your own app name.
Shopify theme editor with the Smart Message Banner block added under Apps in the header section, and its settings panel open on the right showing API Base URL, analytics tracking and message cache duration
The banner block added under Apps, with its three settings on the right.
Put the banner in the header section rather than on a single template. A subscriber with a failed payment may land on any page, and a banner that only exists on one template will miss most of them. Page-level control belongs on the campaign, not the theme — see targeting below.

Block settings

The theme block itself has only three settings, and the defaults are almost always right:

SettingDefaultNotes
API Base URL/apps/max-ltvThe App Proxy path. Leave it unless we tell you otherwise.
Enable analytics trackingOnTurning it off blinds the campaign reporting.
Message cache duration24 hrsHow long messages are cached for the same visitor. See caching below — this one catches people out.

How targeting works

There is no fixed list of message types. You build campaigns in Message Campaigns, and each one is targeted by Shopify customer tag. MaxLTV applies tags as it learns things about a subscriber — a failed payment, a card about to expire, elevated churn risk — and a campaign shows to whoever carries the tag it targets. Tagging rules live under Tag Mappings.

That means the message types are yours to define. The usual set is a payment-issue banner, a card-expiry prompt, a save offer for at-risk subscribers, a reactivation offer for churned ones, and an add-to-next-order upsell — but those are campaigns someone built, not fixed features.

Each campaign has three targeting controls:

ControlBehaviour
Target customer tagsShow to customers carrying any of these tags
Excluded customer tagsHide from customers carrying any of these, even if the target tags match. Exclusion always wins.
Target page URLsGlob patterns matched against the page path, such as /products/* or /cart. Leave empty to show on every page.

When a subscriber qualifies for more than one campaign, priority decides which shows. It defaults to 50, so a campaign that should win needs a higher number than the ones it competes with.

What you can change

Campaigns are yours to edit. Per campaign:

  • Display type — banner or popup.
  • Content — the message is HTML, so copy, markup and inline styling are all yours.
  • Background colour, font colour and font size.
  • Closable — whether the subscriber gets a dismiss control. On by default.
  • Persistence — how long a dismissal lasts. By minutes, hours, days, page loads, or a total number of closes before it stops coming back.
  • Priority — which campaign wins when several match.

Each campaign can also carry a goal, so reporting measures the thing you actually wanted: a click on a particular link, a purchase of a given product, a tag being added, or a Recharge or Shopify event such as a charge being paid.

Add-to-next-order offers

An upsell campaign is backed by an offer with its own settings: the product, a one-time price (zero for a free gift), the tag that makes a subscriber eligible, and whether accepting also ships the next order early. The eligibility tag is removed when the offer is accepted, so nobody is asked twice.

The button is separately styleable — label, colour, font colour, corner radius — along with the success message and an optional No thanks dismiss link. Leaving the "no thanks" text empty removes that link entirely.

Offers can also watch inventory and pause themselves automatically when stock falls below a buffer you set, so you are not selling an add-on you cannot ship.

Previewing and testing

The campaign editor shows a sandboxed preview of the message as it will render. Scripts do not run in it, so it is a check on content and styling rather than behaviour.

To see a campaign live on your store, use the targeting: add the campaign's target tag to your own customer record in Shopify, then browse the store logged in as that customer. Targeting reads Shopify customer tags directly, so the tag is all that is needed — you do not need a real failed payment. Remove the tag afterwards.

Messages are cached per visitor, 24 hours by default. This is the most common reason a change appears not to have worked. After editing a campaign, test in a fresh private window, or lower the cache duration in the theme block while you are iterating.

For deeper diagnostics, running localStorage.setItem('maxltv_debug', 'true') in your browser console makes the tracker log what it is doing.

Troubleshooting

A message is not appearing

In order of how often each turns out to be the cause:

  1. You do not carry the target tag. Browsing logged out, or as a customer without the tag, correctly shows nothing.
  2. The cache. Up to 24 hours by default. Try a private window.
  3. A theme change removed the block. Duplicating a theme, installing a new one, or editing the header can drop it. Re-add the block and re-check the app embed — they are separate settings.
  4. An exclusion tag is matching. Exclusions beat target tags, so one stray tag hides a campaign that otherwise qualifies.
  5. A page URL pattern is too narrow. Empty means every page; a pattern means only those paths.
  6. Another campaign outranks it. Check priority against the others the subscriber matches.
  7. You are editing a draft theme. Changes there do not appear on the live one.
After any theme work, re-check the embed and the block. Theme updates are the most common reason on-site recovery quietly stops. Nothing in Shopify warns you — messages just stop rendering, and the card-update share of your recovery rate drifts down over the following weeks.

It appears in the wrong place

Position comes from where the block sits in your header section. Move it within the section in the theme editor.

Measuring

Every campaign reports impressions, users eligible, unique user views, eligible view rate, clicks, click-through rate and offer take rate over any date range, plus progress against its goal.

If a campaign looks like it is underperforming, check the eligible view rate before rewriting the copy. A low eligible view rate with a healthy click-through rate means the message works on the people who see it and not enough of them do — a placement or targeting problem, not a copy problem.

Related