can experiments bet run when the implementation of mixpanel is through google tag manager?
Yes—if you implement Mixpanel via Google Tag Manager (GTM), you can still run and analyze experiments in Mixpanel. What matters for the Experiments report is that you send an exposure event in the required format when a user is actually exposed to a variant: - Event name: $experiment_started
- Properties: “Experiment name” and “Variant name” as stringsExample: LBKSmixpanel.track('$experiment_started', {'Experiment name': 'Test', 'Variant name': 'v1'})LBKS
You can emit this event using the Mixpanel GTM template’s Track tag type, or map it from a feature flagging tool if you set your “Experiment Event Settings” in Project Settings. [Experiments: Adding]Mixpanel’s GTM template exposes the JS SDK commands (like track/identify) through tags, so you can configure and fire the exposure event and any other experiment-related tracking entirely in GTM. Use GTM Preview mode to test before publishing. [GTM integration; Sending Mixpanel Commands; Testing]Notes and best practices:
- Fire the exposure event only the first time a user is actually exposed (e.g., when they reach the experiment surface), not merely assigned. [Experiments: Adding]
- If you use a third-party flagging tool, you can point Mixpanel to that tool’s event by configuring Experiment Event Settings instead of emitting $experiment_started directly. [Experiments: Adding]
- The legacy Experiments app is deprecating; use the new Experiments report. [Experiments app (deprecating)]In short: yes, GTM implementations fully support running experiments—as long as you send properly formatted exposure events (directly via GTM or mapped via settings), Mixpanel can analyze them. [GTM integration; Experiments: Adding]
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.
Hi Chris 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