Activate the Attribution Theme Extension
Use this guide to enable the Nitoriq attribution app embed in the Shopify
theme editor.
The theme extension is a backup attribution path. It does not replace the Nitoriq Web Pixel. It runs from the Shopify theme and helps preserve Nitoriq identifiers when browser privacy tools, consent behavior, or ad blockers limit pixel-based tracking.
Before you start
- The Shopify store is connected to a Nitoriq workspace.
- The Nitoriq Commerce app is installed for the store.
- You need Shopify access to edit the published theme or the theme you are testing.
- Keep the Nitoriq Web Pixel active when you also use the theme extension.
Why The Backup Exists
Browser tracking can fail before an order reaches Nitoriq. Ad blockers, temporary delivery failures, restricted browser storage, or storefront customizations can interrupt pixel delivery or remove attribution context before checkout completes.
The theme extension improves attribution resilience in two ways:
- it writes Nitoriq IDs into Shopify cart attributes when a shopper lands with
identifiers such as
niq_click_id,niq_visit_id, orniq_campaign_id - it sends fallback storefront signals for add-to-cart and checkout-started behavior from the storefront theme
Those backup signals give Nitoriq another place to look when it attributes an order. If the final order payload includes Nitoriq cart attributes, the order can be matched from Shopify order data even when the pixel path was limited.
Enable the theme extension
Open the Shopify theme editor
In Shopify Admin, open Online Store > Themes.
Choose Customize for the published theme or the theme you want to test.
Open App embeds
In the theme editor, choose App embeds.
Search for Nitoriq attribution when the app embed list is long.
Enable Nitoriq attribution
Turn on Nitoriq attribution under Nitoriq Commerce.
Choose Save.
The app embed adds a storefront script from the Nitoriq Commerce theme extension. It is configured with the store domain and sends fallback requests through the Shopify app proxy path:
/apps/nitoriq/fallback-events/ingestThe extension uses the consent decision already managed by Shopify or by a compatible third-party consent banner. It does not display its own banner or record consent on the shopper’s behalf. When consent is required but has not been granted, the extension does not store Nitoriq identifiers, write attribution into the cart, or send fallback events.
If the shopper later withdraws permission, the extension stops immediately, removes its session attribution, and clears the Nitoriq attributes that it previously added to the active cart.
Generate backup attribution
Open a storefront URL that includes Nitoriq identifiers, then add a product to cart or start checkout.
The extension can preserve these identifiers in Shopify cart attributes:
niq_click_idniq_visit_idniq_campaign_idniq_carrier
It can also send fallback behavioral events for:
product_added_to_cartcheckout_started
Confirm fallback activity
In Shopify Admin, open Apps > Nitoriq Commerce > Tracking health.
Review Fallback status and Last fallback storefront signal. In Nitoriq,
open Commerce > View Store and check the health card for Fallback.
For order attribution, open Apps > Nitoriq Commerce > Store activity, select
an order, and review the attribution audit. When the order payload carries
Nitoriq identifiers, the audit can show order-payload evidence.
Backup attribution pieces
Cart attributes
The theme extension writes Nitoriq identifiers into Shopify cart attributes.
Those attributes can travel with the Shopify order payload and give Nitoriq order-level attribution evidence.Add-to-cart fallback
The extension listens for cart add behavior from forms, fetch requests, and XHR requests.
Nitoriq can still see an add-to-cart signal when the Web Pixel path is unavailable.Checkout-started fallback
The extension listens for checkout links, checkout buttons, and checkout form submissions.
Nitoriq can see checkout intent even when a pixel checkout event is blocked or missing.Fallback status
Tracking health shows whether fallback storefront signals have been received.
It helps separate a quiet fallback path from a pixel-only setup.The backup path is active when
Nitoriq attributionis enabled in the Shopify theme app embeds- the theme editor changes are saved
- the published or tested theme is the one receiving tracked traffic
- Shopify’s Customer Privacy API permits analytics and marketing processing for the test visitor
- Tracking health shows fallback activity after a storefront add-to-cart or checkout-started action
- order attribution audit can show order-payload evidence when cart attributes reach the order
Was this page helpful?