Batch Tracking Example

Create Test Tracking Link

Generate a test tracking link to simulate affiliate traffic.

Test Custom Events

Click the buttons below to trigger custom tracking events.

Implementation Guide

Add the following script to your website to enable tracking:

<script src="https://withbatch.com/batch-tracking.js"></script>
<script>
  // Optional configuration
  window.batchTrackingConfig = {
    debug: true
  };
</script>

For mercacio.store domain:

<script src="https://mercacio.store/batch-tracking.js"></script>
<script>
  // Optional configuration
  window.batchTrackingConfig = {
    debug: true
  };
</script>

API Reference

Track Custom Event

batchTracking.track('event-name', {
  // Optional event data
  productId: 'product123',
  category: 'electronics'
});

Track Purchase

batchTracking.trackPurchase({
  orderId: 'order123',
  total: 99.99,
  items: [
    { id: 'product123', name: 'Smartphone', price: 99.99, quantity: 1 }
  ]
});