Add both scripts to your storefront theme, then initialise the tracker.
<script src="https://cdn.buraq.ai/v1/tracker.js"></script>
<script src="https://cdn.buraq.ai/v1/salla-adapter.js"></script>
<script>
BuraqSignals.init({
writeKey: 'pk_live_your_store_key',
adapter: new BuraqSalla.SallaAdapter(),
})
</script>
v1 is the version to paste: it tracks the latest
v1.x and is cached for five minutes, so fixes reach your storefront
without you editing anything. To pin a build instead, use
/1.0.0/ — those paths never change and are cached for a year.
| file | raw | gzipped |
|---|---|---|
| tracker.js | 26.4 KB | 8.8 KB |
| salla-adapter.js | 4.5 KB | 1.8 KB |
Version 1.0.0. Events are received at
https://ingest.buraq.ai, which is the tracker's default endpoint.