So we are triggering events on Mixpanel via GTM. The custom events are triggering perfectly fine and are reflected on the GTM preview/testing console. However, some of the events are not being sent to Mixpanel.
To troubleshoot this issue with events not being sent to Mixpanel despite triggering correctly in Google Tag Manager (GTM), there are a few steps you can take:1. Check Initialization: Ensure that the Mixpanel instance is properly initialized in GTM. When any Mixpanel GTM tag fires, it should automatically initialize a new instance using the configured Initialization Options. Make sure these options are consistent across all your tags How It Works.2. Verify Project Token: Double-check that you've added the correct Mixpanel Project Token to the respective field in your GTM setup How It Works.3. Use Debug Mode: Enable debug mode in your Mixpanel implementation. This can help confirm if requests are actually being sent to Mixpanel Debugging.4. Check Browser Console: Use your browser's developer console to view Mixpanel API calls being made from each page. Look for requests to the Mixpanel API and troubleshoot any error messages Debugging with the Browser Console.5. Validate Data in Mixpanel: Use the Events page in Mixpanel to confirm if events are arriving in your Mixpanel project QA your Code.6. Check for Ad Blockers: Be aware that client-side tracking can be affected by ad blockers, potentially causing you to lose events for 30-50% of your users. Consider setting up a proxy server to mitigate this issue Client-Side Tracking.7. Verify Event Timestamp: The Mixpanel /track endpoint only ingests events with timestamps within the last 5 days. Ensure your events are not being sent with outdated timestamps Sending Events.If you're still experiencing issues after checking these points, you may want to use the Segment Source Debugger to see exactly what data is being sent to Mixpanel, which can help pinpoint where the problem might be occurring.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.