AxiTrace Documentation

Learn how to use AxiTrace to collect, manage, and integrate your customer data with powerful analytics and marketing tools.

Critical: Read Before Implementing

Incorrect SDK installation causes tracking failures. The loading order is critical: Facebook/TikTok pixels must load before the AxiTrace SDK. Read the JavaScript SDK documentation carefully.

Getting Started

New to AxiTrace? Start with Authentication to understand how to securely connect your application.

Platform integration guides

Running a WooCommerce, Shopify, Magento, Shopware, PrestaShop, OpenCart or BigCommerce store? Skip the SDK setup - install our plugin and connect in 10 minutes.

AxiTrace for WooCommerce Available
Install the plugin, paste your workspace public key, configure a first-party tracking domain, and start forwarding orders to Facebook CAPI, TikTok, Google Ads and GA4 in 10 minutes.
AxiTrace for Shopify Available
Connect your Shopify store in 3 minutes - type the store domain, approve Shopify’s OAuth screen, and the Web Pixel plus webhooks install automatically. No code, no key copying.
AxiTrace for Magento Available
Install the module via Composer on Magento 2 / Adobe Commerce, paste your workspace public key, and forward orders, product views and cart events server-side to Facebook CAPI, TikTok, Google Ads and GA4. Luma and Hyva themes supported.
AxiTrace for Shopware 6 Available
Server-side conversion tracking for Shopware 6.6+. Captures purchases via the SW6 state machine and forwards orders, product views and cart events to Facebook CAPI, TikTok, Google Ads and GA4.
P
AxiTrace for PrestaShop Available
Free module for PrestaShop 8.1 - 9.x, uploaded as a ZIP in the back office. Sends purchases server-side when the payment is accepted (cash on delivery at order time), plus product costs and refunds for profit, and forwards orders, product views and cart events to Facebook CAPI, TikTok, Google Ads and GA4.
O
AxiTrace for OpenCart Available
Free extension for OpenCart 3.0.3.x - 3.0.5.x and 4.0.2.x - 4.1.x, uploaded in the Extension Installer. Sends purchases server-side at OpenCart's processing and complete statuses, plus product costs from its own cost price field and refunds for profit, and forwards orders, product views and cart events to Facebook CAPI, TikTok, Google Ads and GA4.
AxiTrace for BigCommerce Coming soon
Server-side conversion tracking for BigCommerce via webhooks and BODL. Captures purchases server-side and forwards orders, product views and cart events to Facebook CAPI, TikTok, Google Ads and GA4.
Meta Pixel Bridge Available
Shopify merchants: install an optional Custom Pixel snippet that fires Meta/TikTok browser events for upper-funnel activity, deduplicated against your server-side Conversions API events via a shared event ID.
Pinterest Conversions API Available
Forward server-side conversions to Pinterest with the epik click ID attached - manual credentials from Ads Manager, no app review, and match-key coverage that supports the Verified Merchant Program.
LinkedIn Conversions API Available
Forward purchases and B2B leads to LinkedIn with hashed email and the li_fat_id click ID attached - manual token paste, conversion rules created automatically, and a daily monitor that warns before the ~60-day token expiry.
Microsoft Ads Conversions API and spend import Available
Send conversions server-side to your Microsoft Advertising UET tag with the MSCLKID attached - a token pasted from the UET tag settings, fixed event names you match in your conversion goals, and hashed email and phone as fallback match keys. Sign in with Microsoft to import spend, campaigns and daily performance too.
Criteo campaigns and spend import Available
Connect a Criteo advertiser with read-only consent to import campaigns, ad sets and daily spend, impressions and clicks, attribute your orders to Criteo campaigns with the tracking parameters, and see why Criteo's own view-through ROAS reads higher.
Custom paid channels and cost import Available
Track the spend and ROAS of comparison sites and affiliate networks AxiTrace cannot connect to, such as Favi, Ceneo, Idealo or Awin - describe their traffic with simple rules and import costs as an amount, a pasted table, a spreadsheet, a PDF or a screenshot.
OpenAI Ads Conversions API and spend import Available
Send purchases and leads server-side to OpenAI Ads (ChatGPT ads), and connect an Ads Manager API key to import campaigns, ads and daily spend, attribute orders to them and add the tracking template to your campaigns after a preview.
Klaviyo account, campaigns and flows Available
Connect Klaviyo over OAuth and read your account, conversion metric, campaigns, flows and their daily statistics. Read-only, with the exact scopes, re-authorizing, disconnecting and troubleshooting.
Install with Google Tag Manager Available
No plugin for your shop? If GTM already runs on the site and it already pushes a GA4 ecommerce dataLayer, one Custom HTML tag turns those pushes into AxiTrace events without touching shop code.
GA4 dataLayer Auto-Tracking Available
Already sending GA4 ecommerce events? AxiTrace reads the same dataLayer, a free AI shop check switches it on for you, and every order still reaches your ad platforms once.
Server-Side GTM Hosting Business plan
AxiTrace runs a managed Google server-side GTM container for you, on the same custom tracking domain you already connected - no extra DNS, no Cloud Run bill, no Google-side app registration.
AI Assistants (MCP) Pro and above
Connect Claude, ChatGPT or Cursor to your store data with a read-only MCP connector: revenue, ROAS, traffic sources, campaigns and orders without buyer personal data, for the workspaces you choose.
Fraud Detection Business plan
Bots, click farms and repeat clickers scored on your paid traffic, with the evidence behind every label, safeguards that never block a customer who already bought from you, and account-level IP exclusions written into your own Google Ads account.
Google Ads Click Tracker All plans
A transparent server-side redirect on click.axitrace.com for your Google Ads tracking template: every paid click recorded with its real IP address and click ID, then a single 302 to exactly your landing page, with no cookies and nothing appended.
Google Ads Refund Claims Business plan
Paid clicks from high-risk addresses collected into an evidence pack with ready-to-paste texts for Google's Invalid Clicks form, deadlines tracked for you. The ad platform decides on any credit.
Customer Surveys
Create targeted storefront surveys, use reusable templates, control delivery frequency, and issue optional discount rewards.
Attribution Models
First click, last click and data-driven attribution in plain words: one example journey, which visit each model credits and why, what the badges mean and how to switch.
Products
The product ranking and product details: what counts as a product, how revenue is split, refunds, product views and the funnel, AI assistants and product ad cost from Google Shopping and Performance Max.
Leads
Form submissions, sign-ups and trials in one list: what counts as a lead, the 90-day history window, excluding a lead, turning it into an order, and sending products and a value with lead events.
Leads vs Orders
Which channels, ad platforms and campaigns bring leads that become paying customers: how leads are matched to orders, the conversion window, cohorts, same-age comparisons, revenue per lead and cost per customer.
Tracking URL Parameters per Platform
The URL parameters and platform placeholders that bring campaign, ad set and ad ids from Meta, Google Ads, TikTok, Microsoft Ads, LinkedIn, Pinterest, Snapchat, Reddit and X, what ID confidence means and how campaign names are matched.
Traffic sources and filters
Filter the Traffic chart by channel group, source, medium and campaign, what visitors, purchases and revenue mean under a filter, and how every source is sorted into a channel group.
Organic search
Sessions, orders and revenue from search engines, the split by Google, Bing and DuckDuckGo, Google update markers, what search does in the path to purchase, new and returning customers, countries, products and landing pages.
Store health
What the Store health section of Overview measures: conversion rate, average order value, revenue per session, add to cart rate, engaged sessions and engagement time, visits before an order and returning customers.
Annotations
Dated notes on every chart: add one from a chart click, single days and periods, six categories, the filter and the Annotations list, who can edit them, and how Axi and the AI Advisor cite them.
AI credits
What AI credits are, the monthly credits of each plan, credit packs, expiry, which credits are spent first and how many credits an AI Advisor report uses.
Axi assistant
The AI analyst inside the admin panel: what Axi can answer and change, how changes are confirmed, how many credits a question uses, its limits and what it always refuses.
Date Ranges and Comparisons
Which days every preset covers, how today is counted, the four ways to compare periods, comparing two attribution models side by side, exchange rates and the data floor.

Developer reference

JavaScript SDK
Integrate AxiTrace into your website with our lightweight JavaScript SDK for automatic event tracking.
HTTP API
Send events from your server using our REST API. Perfect for backend integrations and server-side tracking.
REST API v1
Read your reports as JSON: KPIs, traffic sources, campaigns, orders, integration health, custom events and fraud detection, with personal access tokens or OAuth.
Settings API and MCP
Read every workspace setting and change data collection, consent, attribution, the reporting timezone, lead sources and Product Labels rules, with the setting before and after.
Fraud Actions API and MCP
Change the Fraud Detection settings and block, unblock or whitelist IP addresses, including the Google Ads IP exclusions of Auto Exclusion.
Live Ad Queries API and MCP
Ask your connected Meta, Google Ads or TikTok account live, read-only: any fields, breakdowns, levels and date ranges the platform API allows.
Axi Memory API and MCP
Read and change the short notes Axi keeps about a workspace, such as a target ROAS or which campaigns are brand campaigns.
AI Advisor API and MCP
Read the verified AI Advisor reports, change how often they arrive, start an analysis and give feedback.
Docs Search API and MCP
Search this documentation, the API reference and the developer guide by keywords, and get the matching sections with their links.
Serve Tracking From Your Own Server
Safari shortens the visitor cookie to seven days when your tracking hostname points somewhere other than your own site. Make it answer from your own infrastructure instead, with recipes for nginx, Apache, Caddy, Cloudflare, CloudFront, Vercel, Netlify, Deno Deploy and plain PHP.
Cookie Consent
Hold tracking back until your visitor accepts cookies - with Shopware's own banner, any consent platform, or a one-line JavaScript call.
Authentication
Learn about Public Keys, Secret Keys, and how to securely authenticate your requests.
Events Reference
Explore all available event types with detailed specifications, required fields, and examples.
Troubleshooting
Diagnose common issues like 0% event coverage, missing ProductView events, and pixel deduplication problems.
Fraud Detection
How suspicious IP addresses are scored, what High risk, Suspicious and Shared network mean, which safeguards keep real customers out of the list, and how Google Ads Auto Exclusion behaves.
Google Ads Click Tracker
The tracking template, every accepted parameter, the exact redirect rules and status codes of click.axitrace.com, and what is recorded for each paid click.
Google Ads Refund Claims
Which clicks are selected, readiness thresholds, the claim period, the evidence pack files, sending the claim through Google's form step by step, and every claim status.
Profit and POAS
How the profit of every order and POAS (Profit on Ad Spend) are calculated: cost components, cost sources, rules, the 90-day backfill, the cost catalog and setup per platform.
Profit Bidding
Send the profit of each order to Google Ads, Meta and TikTok so their own value bidding optimises for profit: setup per platform, target ROAS, risks and how to switch it off.
Agencies and Partners
How agencies apply, invite or create client accounts, work at View or Manage level with two-factor authentication, bill clients on one invoice and earn commission, and how merchants review and revoke agency access.
Changelog
Changes that move a number you already know or change how a report is read, newest first, with the reason and an example for each.

Quick Start

Get started tracking events in minutes with our JavaScript SDK:

1. Load pixels FIRST, then the SDK

<head>
  <!-- 1. Facebook/TikTok pixels FIRST (init only, no PageView) -->
  <!-- ... pixel code with fbq('init', 'PIXEL_ID') ... -->

  <!-- 2. AxiTrace SDK (synchronous, AFTER pixels) -->
  <script src="https://axi.yourdomain.com/axitrack.js"></script>
  <script>
    Axitrace.init({
      publicKey: 'pk_live_YOUR_PUBLIC_KEY',
      apiUrl: 'https://axi.yourdomain.com'
    });
  </script>
</head>

Important: See the full installation guide for complete pixel code and loading order details.

2. Track your first event

// Track a product view (in <head> for FB In-App Browser compatibility)
Axitrace._instance.track('product.view', {
  sku: 'PROD-123',
  name: 'Premium Widget',
  price: 99.99,
  currency: 'USD'
});

Server-Side Integration

For server-side tracking, use the HTTP API with your Secret Key:

curl -X POST https://stat.axitrace.com/v1/transaction \
  -u "sk_live_YOUR_SECRET_KEY:" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "user-123",
    "currency": "USD",
    "value": 99.99,
    "items": [{"item_id": "PROD-123", "item_name": "Widget", "price": 99.99}]
  }'
Important

Never expose your Secret Key in client-side code. Use the Public Key for browser integrations and Secret Key only for server-side requests.

Need Help?

If you have any questions or need assistance: