AxiTrace for BigCommerce
AxiTrace for BigCommerce is currently pending review in the BigCommerce App Marketplace. This guide documents the installation and setup flow for early-access merchants. To request early access, email info@axitrace.com.
A complete walkthrough: install the AxiTrace BigCommerce app via OAuth, enable BODL in your store settings, and verify the first server-side purchase event lands in your AxiTrace dashboard. About ten minutes from blank to fully wired.
Before you start
You will need:
- An AxiTrace account with at least one workspace. Create one for free (10,000 visits/month, no card required).
- A BigCommerce store on any plan (Essentials or above).
- Store Owner or Admin access to approve the OAuth consent screen and manage Apps.
- About 10 minutes.
BODL prerequisite (required)
AxiTrace uses the BigCommerce Order Data Layer (BODL) for client-side storefront events. BODL is not enabled by default. Without it, product views, add-to-cart, and checkout events will not fire. Server-side purchase events (via webhooks) work regardless of BODL status.
To enable BODL:
- In your BigCommerce control panel, navigate to Settings → Analytics.
- Scroll to the Hosted Analytics section.
- Locate BigCommerce Order Data Layer (BODL) and toggle it on.
- Click Save.
For full details on BODL, refer to the BigCommerce Hosted Analytics documentation.
Install from the App Marketplace
- Log in to your BigCommerce control panel.
- In the left sidebar, navigate to Apps → App Marketplace.
- Search for AxiTrace and click the app listing.
- Click Install.
OAuth scopes and permissions
BigCommerce presents an OAuth consent screen listing the permissions AxiTrace requests. Review them and click Confirm to proceed.
| OAuth scope | Why it is needed |
|---|---|
store_v2_orders_read_only |
Read full order details (line items, revenue, currency, customer ID) to enrich server-side purchase events forwarded to Facebook CAPI, TikTok, Google Ads and GA4. |
store_v2_customers_read_only |
Read customer email and phone for hashed PII matching (Facebook CAPI / TikTok EMQ improvement). No raw PII is stored by AxiTrace. |
store_v2_information_read_only |
Read store metadata (domain, currency, timezone) at install time for workspace configuration. |
store_content |
Register and manage the AxiTrace BODL script via the Script Manager API. Enables automatic script injection into the storefront without theme edits. |
After clicking Confirm, BigCommerce completes the OAuth flow and redirects you back to the AxiTrace App Extension panel inside the BC admin sidebar. Installation is confirmed when you see your workspace connection status in the panel.
Find your public key
The public key (always starts with pk_live_) identifies your AxiTrace workspace. It is displayed in two places:
- In the BigCommerce App Extension panel - after installation, open the AxiTrace panel from the BC admin sidebar. The public key is shown in the Connection Details section. Click the copy icon next to it.
- In the AxiTrace admin - sign in at axitrace.com/login, open your workspace, and find the Public Key in the Container Information card of Workspace settings → Tracking & domains.
Only the pk_live_-prefixed public key appears in the App Extension panel and the browser script. Never expose or share the Secret Key - it is reserved for backend SDK calls only.
Custom tracking domain (optional)
By default, the AxiTrace browser script sends events to stat.axitrace.com. Some ad blockers and browser extensions block requests to known third-party analytics domains. Setting up a custom tracking domain routes events through a subdomain you control, significantly improving data capture rates.
Setup steps
- Choose a subdomain on your own domain, for example
axi.yourdomain.com. - In your DNS provider, create a CNAME record:
- Host / Name:
stat(or whatever subdomain you chose) - Value / Target:
stat.axitrace.com - TTL: 3600 or lower
- Host / Name:
- Wait for DNS propagation (typically 5-30 minutes).
- In the AxiTrace App Extension panel inside BigCommerce admin, paste the full custom domain (e.g.
https://axi.yourdomain.com) into the Custom Tracking Domain field and click Save.
Once saved, the AxiTrace script registered via Script Manager will use your custom domain for all event collection. No theme edits are required.
AxiTrace verifies that the CNAME resolves correctly before accepting the custom domain. If verification fails, check that the CNAME record has propagated with dig axi.yourdomain.com CNAME or an online DNS checker. For more details see the Domain Configuration guide.
Place a test order
The fastest way to confirm everything is wired up is a real (or test) order.
- Open your storefront in a fresh incognito window.
- Browse a product, add it to the cart, proceed to checkout, and complete an order.
- BigCommerce fires the
store/order/statusUpdatedwebhook when the order is created. AxiTrace enriches the order via the BigCommerce REST API and dispatches a server-sidetransaction.chargeevent. The AxiTrace dashboard should show “last event N minutes ago” within 1-2 minutes. - If BODL is enabled, the client-side
order_purchasedevent fires immediately in the browser on the order confirmation page.
Each purchase event carries a deterministic UUID v5 event_id derived from the BigCommerce order ID (bigcommerce_order:{orderId}). AxiTrace deduplicates events by event_id, so even if the webhook fires more than once, the conversion is never counted twice. Facebook, TikTok and Google Ads also deduplicate against this ID when matching server and browser events.
What gets tracked
The app fires the following events. All propagate to every ad platform you have connected (Facebook CAPI, TikTok Events API, Google Ads, GA4).
| Event | When it fires | Client | Server |
|---|---|---|---|
transaction.charge |
BigCommerce store/order/statusUpdated webhook on order creation |
- | ✓ |
product.view |
BODL product_viewed event on product detail page |
✓ | - |
product.addToCart |
BODL cart_item_added event |
✓ | - |
begin_checkout |
BODL checkout_began event |
✓ | - |
page.view |
Every storefront page load | ✓ | - |
Client-side events require BODL to be enabled in Settings → Analytics → Hosted Analytics. The server-side transaction.charge event originates from the webhook handler and is not affected by ad blockers, iOS privacy restrictions, or browser cookie consent.
Cookie consent: a known limitation
The BigCommerce integration is not finished, and cookie consent is one of the parts that is missing. Respect cookie consent in your AxiTrace workspace (Workspace settings → Privacy & consent) is not enforced in the BigCommerce storefront, and events from this integration reach AxiTrace with no consent state.
The practical consequence: with Respect cookie consent on and Forward events that do not report a consent state off (the default pairing), nothing from a BigCommerce store is forwarded to your ad platforms, purchases included. Every blocked event is written to your integration log with the reason, so the effect is visible rather than silent. If you need BigCommerce conversions to keep flowing while consent is required, turn Forward events that do not report a consent state on and gate consent in your storefront instead. See the Cookie consent guide.
Server-side webhook tracking
Even if a visitor’s browser blocks all JavaScript tracking, purchase events still reach your ad platforms. Here is how it works:
- When a BigCommerce order is placed, BC sends a
store/order/statusUpdatedwebhook to AxiTrace. - AxiTrace enriches the minimal webhook payload by fetching the full order from the BigCommerce REST API (
GET /v2/orders/{id}) - line items, revenue, currency, customer details. - The enriched order is normalised into AxiTrace’s internal event schema and forwarded server-side to Facebook CAPI, TikTok Events API, Google Ads offline conversions, and GA4 Measurement Protocol.
- If a browser BODL purchase event also fired, the platforms deduplicate against the shared
event_id- only one conversion is counted.
BigCommerce automatically deactivates webhooks after 90 consecutive days of failed delivery attempts. AxiTrace runs an hourly health-check process that detects dormant webhooks and re-registers them automatically. Webhook status is visible in the AxiTrace App Extension panel inside BC admin.
Troubleshooting
Events are not arriving in the AxiTrace dashboard
Check the following in order:
- Confirm the app is installed and the connection status shows Connected in the App Extension panel (BigCommerce admin sidebar → AxiTrace).
- Verify that BODL is enabled: Settings → Analytics → Hosted Analytics → BigCommerce Order Data Layer. This is required for client-side events.
- For server-side events: check the webhook health status in the App Extension panel. If webhooks show as inactive, click Re-register webhooks.
- Verify that your server can reach
stat.axitrace.comoutbound on port 443:curl -I https://stat.axitrace.com/health.
No purchase event - test order not appearing in the dashboard
The server-side transaction.charge event fires from the store/order/statusUpdated webhook. Possible causes:
- Webhook was not registered at install time. Check webhook status in the App Extension panel and use the Re-register webhooks button if needed.
- The BigCommerce REST API call to enrich the order failed. Check your AxiTrace workspace logs or contact info@axitrace.com with your store hash.
- Events appear in the dashboard within 1-2 minutes of the webhook firing. If more than 5 minutes have passed, the webhook may not have been delivered by BC. Check the BigCommerce control panel under Settings → API → Webhooks for delivery status.
BODL client-side events not firing (product views, add-to-cart)
BODL events require Hosted Analytics to be active. Steps to diagnose:
- Confirm BODL is enabled: Settings → Analytics → Hosted Analytics → ensure BigCommerce Order Data Layer is toggled on and saved.
- Open your storefront in a private window and check the browser console for AxiTrace script load errors. The script URL should point to
stat.axitrace.com(or your custom domain) followed by/axitrack.js. - Verify the AxiTrace script is listed in Storefront → Script Manager. If it is missing, uninstall and reinstall the AxiTrace app.
Invalid public key error
pk_live_ (or pk_test_ for a test workspace). The most common cause is a leading or trailing whitespace character. Re-copy from the App Extension panel or from axitrace.com/login → Workspace settings → Tracking & domains → Container Information.
Do I need to install a separate Facebook Pixel or TikTok Pixel tag?
FAQ
Which BigCommerce plans are supported?
Is BODL mandatory?
Does it work with custom BigCommerce themes (Stencil)?
Does it support multi-storefront (MSF) configurations?
Is the app free?
What BigCommerce OAuth scopes does it request?
The app requests exactly four scopes, all read-only except Script Manager:
store_v2_orders_read_only- read order details for server-side event enrichmentstore_v2_customers_read_only- read customer PII for hashed matching (Facebook EMQ, TikTok match quality)store_v2_information_read_only- read store metadata at installstore_content- register/delete the BODL tracking script via Script Manager
The more sensitive store_content_checkout scope is not requested - it would trigger a mandatory BC security review. BODL’s order_purchased event fires on the order confirmation page in a normal storefront context, which does not require checkout iframe access.
How long until events appear after a purchase?
It depends on the event source:
- Client-side events (page view, add-to-cart, checkout, browser purchase confirmation via BODL): appear instantly (within seconds of the browser event firing).
- Server-side purchase events (webhook → enrichment → forwarding): appear within 1-2 minutes. The delay is due to BigCommerce webhook delivery + AxiTrace REST API enrichment.
Support
For questions, installation help, or early access requests, email info@axitrace.com. Most installs are working within 10 minutes and we will personally help if yours is not.