How to Fix Duda Tracking Events Not Firing | OpsBlu Docs

How to Fix Duda Tracking Events Not Firing

Fix GA4, GTM, and pixel events not firing on Duda — Head/Body HTML code placement, native integration setup, and site publish cache debugging

General Guide: See Events Not Firing for universal debugging steps.

Duda-Specific Causes

Configuration Issues

  • Native integration not enabled
  • Wrong tracking ID entered
  • Code in wrong location (Head vs Body HTML)

Publishing/Cache Issues

  • Site not published after changes
  • CDN cache serving old version
  • Browser cache showing outdated code

Code Conflicts

  • Multiple tracking implementations
  • JavaScript errors from widgets
  • Consent management blocking scripts

Ecommerce-Specific

  • dmAPI not available on page
  • Wrong page type for events
  • DOM selectors not matching theme

Diagnostic Steps

Step 1: Verify Integration Settings

  1. Go to Site Settings in Duda editor
  2. Check native integrations (GA, GTM, Meta Pixel)
  3. Verify IDs are correct

Step 2: Check Head/Body HTML

  1. Go to Site Settings > Head HTML
  2. Verify tracking code is present and correct
  3. Check Body HTML for additional scripts

Step 3: View Page Source

  1. Visit your live site (not editor preview)
  2. Right-click > View Page Source
  3. Search for your tracking code/IDs
  4. Confirm code is in correct location

Step 4: Check Browser Console

  1. Open DevTools (F12)
  2. Go to Console tab
  3. Look for JavaScript errors (red messages)
  4. Check for blocked resources

Step 5: Test with Debug Tools

Google Analytics:

  • GA4 Realtime reports
  • GA Debugger extension
  • GTM Preview Mode

Meta Pixel:

  • Meta Pixel Helper extension
  • Events Manager Test Events

GTM:

  • GTM Preview Mode
  • Tag Assistant extension

Duda-Specific Fixes

Fix 1: Clear CDN Cache

After making tracking changes:

  1. Go to Site Settings > Advanced
  2. Find CDN/cache settings
  3. Clear cache
  4. Wait a few minutes
  5. Test on live site

Fix 2: Republish Site

  1. Make any minor edit in editor
  2. Click Publish
  3. Wait for publish confirmation
  4. Test on live site (not preview)

Fix 3: Use Native Integrations

If manual code isn't working, try native:

  1. Remove manual code from Head/Body HTML
  2. Use Site Settings > integrations
  3. Enter only your tracking ID
  4. Publish and test

Fix 4: Fix Code Placement

Correct placement:

  • GTM head code → Head HTML
  • GTM noscript → Body HTML
  • GA4/Meta Pixel → Head HTML

Common mistake: Putting all code in Head HTML (noscript should be in Body).

If using a consent management:

  1. Check consent tool is configured correctly
  2. Verify tracking fires after consent
  3. Test by granting consent manually

Fix 6: Debug dmAPI (Ecommerce)

For ecommerce events:

// Test in browser console on product page
console.log(window.dmAPI);
console.log(window.dmAPI.getProductInfo());

If dmAPI is undefined, you're not on an ecommerce page or ecommerce isn't enabled.

Common Issues & Solutions

Issue Cause Solution
No events at all Integration not enabled Enable in Site Settings
Works in preview only Not published Publish site
Intermittent tracking Cache issues Clear CDN cache
Ecommerce events missing Wrong page type Check dmAPI availability
Duplicate events Multiple implementations Remove duplicates
Events blocked Consent management Check consent config

Testing Checklist

  • Tracking IDs are correct
  • Code is in correct location (Head/Body HTML)
  • Site is published (not just saved)
  • CDN cache is cleared
  • Code appears in page source
  • No JavaScript errors in console
  • Events appear in platform dashboards
  • Tested in incognito mode
  • Tested on different browsers
  • Ecommerce: dmAPI is available