Tracking Implementation Guide
Learn how to implement tracking pixels and conversion tags for your campaigns.
Proper tracking is essential for measuring campaign performance and optimizing for conversions. Follow these steps to implement tracking correctly.
Get Your Tracking Pixel
Contact your Adyllic account manager to receive your unique tracking pixel code. Each campaign has its own pixel ID.
Install Base Pixel
Add the base tracking pixel to all pages of your website, preferably in the <head> section for fastest loading.
Set Up Conversion Events
Add event tracking code to specific pages or actions you want to track as conversions (purchases, sign-ups, etc.).
Test Your Implementation
Use browser developer tools to verify the pixel fires correctly. Check the Network tab for tracking requests.
Code Examples
Base Tracking Pixel
<!-- Adyllic Tracking Pixel -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://tracking.adyllic.com/pixel.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','adyllicLayer','YOUR_PIXEL_ID');
</script>
<!-- End Adyllic Tracking Pixel -->Conversion Event
<!-- Fire on conversion pages -->
<script>
adyllicLayer.push({
'event': 'conversion',
'value': 99.00,
'currency': 'EUR',
'transaction_id': 'ORDER_123'
});
</script>Custom Event
<!-- Track custom events -->
<script>
adyllicLayer.push({
'event': 'add_to_cart',
'product_id': 'SKU_456',
'value': 49.00
});
</script>Server-Side Tracking
Server-side tracking sends data directly from your server to our tracking endpoints, bypassing browser limitations and ad blockers for more reliable measurement.
Benefits
- Bypass ad blockers and browser privacy restrictions
- More accurate data collection and attribution
- Reduced impact on page load performance
- Enhanced data security and control
- First-party cookie support for better cross-session tracking
When to Use Server-Side Tracking
- β’ High-value conversion tracking (purchases, leads)
- β’ When ad blockers significantly impact your data
- β’ For e-commerce with complex checkout flows
- β’ When you need enhanced data privacy compliance
- β’ Multi-channel attribution across devices
Implementation Steps
- 1Set up a server-side endpoint on your backend (Node.js, Python, PHP, etc.)
- 2Configure your server to send conversion events to Adyllic's Conversion API
- 3Include required parameters: event_name, event_time, user_data (hashed), and custom_data
- 4Implement deduplication by sending matching event_id for browser and server events
- 5Test using our Event Debugger to verify server events are received correctly
Troubleshooting
- β’ Pixel not firing? Check for JavaScript errors in the console.
- β’ No conversions showing? Verify the event code is on the correct page.
- β’ Duplicate events? Ensure pixel code isn't included multiple times.
- β’ Cross-domain issues? Contact support for subdomain tracking setup.
