AxiTrace Documentation
Learn how to use AxiTrace to collect, manage, and integrate your customer data with powerful analytics and marketing tools.
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.
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.
Developer reference
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}]
}'
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:
- Check our detailed Events Reference
- Review the Authentication Guide
- Contact support at info@axitrace.com