Store connections

Changing or updating your Shopify theme

Updated

App embeds are switched on per theme. When you publish another theme, or a theme update arrives as a new copy, switch on ROASaurus under App embeds in that theme and save. Your settings and data in ROASaurus stay as they are.

Before you start

  • Shopify access to Online Store › Themes.

Steps

  1. Open the theme you will publish

    Shopify admin › Online Store › Themes, click Customize on the new theme (before or after you publish it).

  2. Switch on the app embed

    In the left sidebar open App embeds, switch on ROASaurus and click Save. Its one setting, Tracking endpoint, can stay as it is.

    You should see: ROASaurus switched on in the list of app embeds.

  3. Check tracking

    Publish the theme, open the store with ?roasaurus=connected, and look at the app's Setup status in Shopify (Apps › ROASaurus).

    You should see: "ROASaurus is connected." and the theme app embed status On; storefront events count up as visitors browse.

  4. Check Buy it now and old code

    If the new theme turns on dynamic checkout buttons, turn them off again so Add to cart is tracked. If you pasted the ROASaurus script into the old theme's theme.liquid by hand, paste it into the new theme too, or rely on the app embed only.

Why a theme change matters

The ROASaurus app embed is a theme setting, like your logo or colours: each theme keeps its own list of app embeds. A duplicated theme copies the setting; a theme freshly installed from the Theme Store, or a major update that Shopify installs as a new copy, starts with every app embed off. Your theme's version number does not matter: the embed works the same on every Online Store 2.0 and vintage theme.

Nothing else changes: orders keep coming from Shopify's order webhooks and the checkout pixel lives outside the theme, so purchases are recorded throughout. What is lost while the embed is off are page views, product views, adds to cart and the ad click ids of new visitors.

Common problems

No events after the switch
The embed is on in another theme than the live one. Open Customize on the theme marked Current theme.
Alert "No tracking events for more than 6 hours"
ROASaurus noticed the gap. Switch the embed on in the live theme; events return from the next visit. Visits in between were not recorded.

Next step

Back to the Shopify setup

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.