Troubleshooting
Solutions to common integration issues.
Events not appearing
Check initialization script
- Open browser DevTools (F12)
- Go to Console tab
- Type
_edroneand press Enter - You should see the edrone object
If undefined, the script isn't loaded:
- Verify script is in
<head>section - Check for JavaScript errors
- Ensure
app_idis correct
Check network requests
- Open DevTools → Network tab
- Filter by "edrone"
- Look for requests to
api.edrone.me
If no requests:
- Event code may not be executing
- Check for JavaScript errors
If requests fail:
- Check
app_idis valid - Verify required fields are present
Event data incorrect
Missing fields
Common issues:
- Product data not set before event fires
- Fields not URL-encoded properly
Wrong product data
Ensure you're setting data before the event:
// Wrong: Event fires before data is set
_edrone.action_type = 'product_view';
// Product data set AFTER action_type
// Correct: Set all data first
_edrone.product_ids = '123';
_edrone.product_titles = 'Product';
// ... all other fields
_edrone.action_type = 'product_view'; // Last
Page caching issues
If your site uses caching, edrone events may show stale data.
Solution 1: Exclude from cache
Configure your cache to exclude pages with user-specific data.
Solution 2: Client-side data
Fetch product data via JavaScript after page load:
fetch('/api/product/' + productId)
.then(response => response.json())
.then(product => {
_edrone.product_ids = product.id;
_edrone.product_titles = product.title;
// ... set other fields
_edrone.action_type = 'product_view';
});
Orders not tracking
Frontend order event
Ensure the order event fires on the thank you page:
- Check that the page loads after payment
- Verify all required fields are set
- Check for JavaScript errors
Backend order event
For backend tracking:
- Include
sender_type=server - Verify API response is
200 OK - Check
order_idis unique
Subscription issues
Subscribe not working
- Check
subscriber_statusis'1'(string, not number) - Verify
customer_tagsis set - Ensure
_edrone.init()is called after form submit
Unsubscribe not working
Remember: unsubscribe (subscriber_status='0') only works via backend:
curl -X POST https://api.edrone.me/trace \
-d "app_id=YOUR_APP_ID" \
-d "sender_type=server" \
-d "action_type=subscribe" \
-d "email=user@example.com" \
-d "subscriber_status=0"
Still having issues?
- Contact Support - help.edrone.me
- Developer Community - Share integration code for review