Skip to content

fix(mixtape): load the visual-experiments SDK build - #77

Merged
ak--47 merged 1 commit into
mainfrom
mixtape-visual-experiments-lib
Sep 23, 2026
Merged

ak--47 merged 1 commit into
mainfrom
mixtape-visual-experiments-lib

Conversation

@ak--47

@ak--47 ak--47 commented Sep 23, 2026

Copy link
Copy Markdown
Member

Follow-up to #76.

Problem

#76 added visual_experiments: true to mixtape's mixpanel.init. Mixtape still loaded ${MIXPANEL_PROXY}/lib.min.js. That build is plain 2.83.0 and has no visual experiments code. The SDK stored the option and ignored it:

  • get_config('visual_experiments') → true
  • mixpanel.experiments → undefined

Fix

One line in oneoffs/mixtape/index.html. Point MIXPANEL_CUSTOM_LIB_URL at the build the main app uses since #75:

${MIXPANEL_PROXY}/libs/mixpanel-2.83.0-ve-alpha-1.min.js

The visual_experiments: true option from #76 stays as is. Mixtape already loads via the snippet and does its setup in the loaded callback, so none of the other #75 changes apply here.

Verified locally

  • SDK loads from the new URL
  • mixpanel.experiments exists
  • paywall_social_proof_v1 flag resolves
  • No console errors

#76 added `visual_experiments: true` to mixtape's init, but mixtape still
loaded `${MIXPANEL_PROXY}/lib.min.js`. That build is plain 2.83.0 and has
no visual experiments code, so the SDK stored the option and ignored it
(`get_config('visual_experiments')` was true, `mixpanel.experiments` was
undefined).

Point MIXPANEL_CUSTOM_LIB_URL at the same build the main app uses since
#75: `${MIXPANEL_PROXY}/libs/mixpanel-2.83.0-ve-alpha-1.min.js`. Dor's
init option stays as is.

Verified locally: SDK loads from the new URL, `mixpanel.experiments`
exists, the paywall flag resolves, no console errors.

Co-Authored-By: Claude <noreply@anthropic.com>
@ak--47
ak--47 merged commit f1d2db0 into main Sep 23, 2026
8 checks passed
@ak--47
ak--47 deleted the mixtape-visual-experiments-lib branch September 23, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant