Question

Trying to Debug Event Call

  • 28 May 2020
  • 1 reply
  • 77 views

Hello,

I am seeing data within my Mixpanel project against an event called product.viewed. When I visit the website that corresponds with this Mixpanel project, and navigate to a product page for which I see data in Mixpanel, I do not see any network calls to Mixpanel that contain the relevant information about this event.

I have tried enabling debug mode as it’s suggested in this article, but it’s not resulting in any records: https://community.mixpanel.com/announcements-6/no-data-in-project-articles-from-the-archive-2560. I used the correct Mixpanel token in the mixpanel.init call. 

How can I see when and where this event is firing?

 

 


1 reply

Userlevel 5
Badge +3

@lauralou412 —

I confirmed with our support team you were able to resolve this, I’m happy to hear that!

 

For anyone stumbling on a similar issue in the future, here are instructions on how to turn on debug mode using Chrome Dev Tools:

In your console - add mixpanel.set_config() to enter debug mode and requests to Mixpanel would be logged in your console.

1. Go to the website URL where you are tracking this event — if you are unsure, you can use the “current url” property in Mixpanel to narrow it down.

2. Click around to identify where the event may be getting triggered.

3. Look for requests to  https://api-js.mixpanel.com/track/ in your dev console to find the event you are trying to locate, it will be in a base64 encoded data payload .

 

Let us know how it goes!

 

Reply