How to check type of implementation of my project? (Javascript Implementation vs Server-side Implementation)?
Hi Yanisa S., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To check the type of implementation for your Mixpanel project (JavaScript vs Server-side), you can follow these steps:1. For JavaScript (client-side) implementation:
- Open your browser's developer console on a page where Mixpanel is implemented.
- Look for Mixpanel-related logs or network requests.
- If you see Mixpanel requests being made from the browser, it's likely a client-side implementation.2. For Server-side implementation:
- Server-side implementations don't generate visible requests in the browser.
- You would need to check your server code for Mixpanel SDK usage or API calls.To definitively determine the implementation type, you can enable debug mode in Mixpanel:For JavaScript implementation:LBKSmixpanel.init('YOUR_PROJECT_TOKEN', { debug: true });LBKS
If you're using the HTML snippet, you can enable debug mode from the console::LBKS```LBKSmixpanel.set_config({debug::true});```With debug mode enabled, you'll see detailed logs in the browser console for a JavaScript implementation.Mixpanel SDKs: Javascript provides more information on enabling debug mode for JavaScript implementations.For server-side implementations, debug logs would typically appear in your server logs rather than the browser console.If you're still unsure, you can check the Mixpanel library property of the events in your project:
- Cloud Mode (server-side) will show as Mixpanel Library: Segment: analytics.js
- Device Mode (client-side) will show as Mixpanel Library: Segment: webThis information is based on the Segment integration FAQ, but the principle applies to non-Segment implementations as well.Remember, it's possible to have both client-side and server-side implementations in the same project, so you might see evidence of both depending on how your tracking is set up.
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.