All articles

DocsStorefront

Widget and loyalty page

Turn on the rewards widget, loyalty page and product points block in the theme editor, choose launcher pages, and see what guests and members see.

Thrice adds three pieces to your online store theme: a floating rewards button that opens a panel, a full loyalty page, and a line on product pages that says how many points the product earns. You turn each one on in Shopify's theme editor. Their colors, fonts and texts come from the Thrice app.

The three pieces

Piece Name in the theme editor Type Where it can go
Launcher and panel Rewards widget App embed Every page
Loyalty page Loyalty page App block Any template, usually a page
Product points Product points App block Product templates only

An app embed is switched on once for the whole theme. An app block is placed in a section of a template, like any other block.

Turn them on

The quickest way is from Thrice:

  1. Open Store design.
  2. Under Add Thrice to your theme, click Turn on widget. The theme editor opens on your current theme with the Rewards widget embed ready to switch on. Turn it on and save the theme.
  3. Click Add loyalty page. The theme editor opens on the page template with the Loyalty page block ready to add. Add it and save.

Note: A Shopify template is shared by every page that uses it. If you add the loyalty page block to your default page template, it appears on all pages built on that template. You may prefer a template used only by your rewards page.

There is no button for Product points. In the theme editor, open a product template, add the Product points block where you want it (for example under the price) and save.

The setup checklist on Overview has a step "Turn on the widget in your theme". Thrice cannot see your theme, so the step is done when you click It's turned on. How the theme editor itself works is decided by Shopify.

Theme editor settings

Rewards widget

  • Launcher: choose where the floating button appears: Home page, Product pages, Collection and search pages, Cart page, Content pages, Blog and articles, Customer account pages and All other pages. All are on by default. On a page where the launcher is off, the widget still loads, so referral links and the ?thrice=open link keep working.
  • Show points earned since the last visit: when a returning member has new points, a small notice tells them how many they earned, with See rewards. On by default.

Loyalty page

  • Heading: replaces the page title for visitors who are not members. Leave it empty to use the text from Thrice.
  • Maximum width: 720 to 1440 px, default 1120.
  • Sections: checkboxes for How it works, Ways to earn, Rewards, VIP tiers, Refer a friend and Questions. Unticking one hides it on this block even if Thrice shows it. A section hidden in Thrice stays hidden whatever you tick here.

The order of the sections, who sees each one, and custom code blocks are set in the Page builder.

Product points

  • Style: Badge or Plain text.

What shoppers see

Logged-out visitors

  • Panel: "Earn rewards every time you shop", a Join now button that opens your store's account registration, and a Sign in link. Below that: ways to earn with their points, rewards with their cost, VIP tiers and live challenges. The referral card says "Join to get your personal referral link". A visitor who came through a referral link also sees the friend's discount card (see Referrals).
  • Loyalty page: a header with Join now and Sign in buttons and a card showing up to three rewards, then "How it works", ways to earn, rewards, tiers, the referral section with a Join now button, and questions.

The Sign in and Join now links send the visitor to your store's account pages and bring them back to the page they were on, with the panel open.

Logged-in customers who are not members

The panel says "You're one step away" with a Join now button, and the loyalty page header has a Join now button. Pressing it makes them a member straight away, whichever enrollment setting you use. Customers with an excluded tag see "This account can't join the program." The rest matches what logged-out visitors see.

Members

  • Launcher: with the Icon and label style, shows the member's balance next to the label.
  • Panel: a greeting, the balance, their tier and progress to the next tier, then cards for their unused reward codes (the two newest, with Copy), the next reward or how many rewards they can redeem, challenges with progress, rewards with Redeem, ways to earn, their referral link (when you have a referral rule), tiers and Activity. Cards with nothing to show are left out. Ways to earn include Follow and Visit buttons for social and link rules, and a birthday button if they have not set one.
  • Loyalty page: a greeting, a summary line, a View my rewards button that opens the panel, and a card with the balance and tier progress. Redeem on a reward opens the panel to confirm. "How it works" is shown to guests only by default.

Three things appear only when they apply:

  • Points about to expire. If you use points expiry and the member's points expire within 60 days, a line under the balance says how many points expire on which date, and that earning again keeps them.
  • A code that is being prepared. If Shopify has not confirmed a reward code yet, the reward shows "Preparing your code" where Redeem would be, so the member does not redeem twice. See Rewards.
  • A friend's gift. A member who arrived through another member's referral link and has not ordered yet sees the gift card at the top of the panel. See Referrals.

After redeeming, the panel shows the code with Copy and Apply to cart, which applies the code to the shopper's cart. See Rewards.

While the program is paused, the panel and the loyalty page show one line for everyone: "Collecting points is on hold for now. You can still use your points and reward codes." Ways to earn, challenges, the referral link, "How it works", Join and a new friend's gift are hidden, and the product points block shows nothing. Balances, tiers, rewards with Redeem, unused codes and a friend's gift already claimed show as usual. See Settings.

Add ?thrice=open to any store address, for example https://your-store.com/?thrice=open, to open the panel when the page loads. Use it in a menu item, a banner or an email. It works on any page where the Rewards widget embed is on, including pages where the launcher is hidden.

Widget use and orders

Thrice notes when a shopper uses the rewards widget, so that orders following it can be counted as widget-driven in Analytics. A shopper uses the widget when they:

  • open the panel, from the launcher, the points-earned notice, a ?thrice=open link or the loyalty page's View my rewards button, or
  • take an action from the panel or the loyalty page: join, redeem a reward, claim a friend's gift, complete a way to earn such as Follow or Visit, or save their birthday.

Only looking at the loyalty page doesn't count. Thrice puts the time on the shopper's cart, at most once every 30 minutes per browser tab. An order placed in the same browser within 7 days of it counts as widget-driven; an order placed on another device or in another browser isn't connected to it.

If your theme's cookie banner uses Shopify's customer privacy setting and the shopper declined analytics, nothing is put on their cart. Without such a banner, Thrice treats it as allowed. Nothing is recorded in Thrice's previews.

"Powered by Thrice"

On the Free plan, the panel shows a small "Powered by Thrice" link at the bottom. Paid plans do not show it. The loyalty page and the product points line never show it. See Plans and billing.

Why the product figure can differ from the award

The product line reads "Earn 25 points with this purchase". It multiplies the selected variant's price by the total of your active Place an order rules, and by the member's tier multiplier for logged-in members. It is hidden on gift cards and when the product would earn 0 points.

The points actually awarded are worked out on the order subtotal after discounts, rule by rule, with each rule rounded down separately. Because of discounts, other items in the cart and that per-rule rounding, the award can differ from the product figure, often by a point. Collection bonuses are not included in the product figure. See How points work.