Postback URL Builder
Generate postback URLs and code snippets to track conversions with NextLinks. Choose your preferred integration method.
Configure Your Postback
From Attribution → Events
Variable name or test value
Sale amount for revenue tracking
Choose Integration Method
Generated Code
Simple URL (GET request)
https://nextlinks.ai/api/event?click_id=YOUR_CLICK_ID
cURL
curl "https://nextlinks.ai/api/event?click_id=YOUR_CLICK_ID"
JavaScript (fetch)
// When a conversion happens, send this request
fetch('https://nextlinks.ai/api/event', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
pbk: 'YOUR_POSTBACK_KEY',
click_id: YOUR_CLICK_ID
})
});How to Capture the Click ID
When users land on your page from a NextLink, extract the click_id from the URL:
// Get click_id from URL
const params = new URLSearchParams(window.location.search);
const clickId = params.get('click_id');
// Store in cookie for checkout page
if (clickId) {
document.cookie = `nl_click_id=${clickId}; max-age=2592000; path=/`;
}Method Comparison
Server-Side
- ✓ Most reliable
- ✓ Not blocked by ad blockers
- ✓ Real-time tracking
- ○ Requires backend code
JavaScript Pixel
- ✓ Easy to implement
- ✓ Auto-reads URL params
- ○ Can be blocked
- ○ Client-side only
Image Pixel
- ✓ Works everywhere
- ✓ No JavaScript needed
- ○ Manual value insertion
- ○ No error feedback
When to Fire
- •After successful purchase
- •On signup completion
- •After form submission
- •On thank you page load