Skip to main content

Troubleshooting

Solutions to common integration issues.

Events not appearing

Check initialization script

  1. Open browser DevTools (F12)
  2. Go to Console tab
  3. Type _edrone and press Enter
  4. 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_id is correct

Check network requests

  1. Open DevTools → Network tab
  2. Filter by "edrone"
  3. 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_id is 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_id is unique

Subscription issues

Subscribe not working

  1. Check subscriber_status is '1' (string, not number)
  2. Verify customer_tags is set
  3. 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?

  1. Contact Support - help.edrone.me
  2. Developer Community - Share integration code for review