docs icon indicating copy to clipboard operation
docs copied to clipboard

Adding dynamic project token from url param projectToken

Open santigracia opened this issue 1 year ago • 3 comments

  • found a way of not using Router and use the window.location searchParams

  • needed to use useEffect because of the new tab functionality, switching between tabs changes the DOM and we need to update proj token accordingly

  • based on current element structure, I couldn't find an alternative to querySelectorAll().find to select that DOM element.

  • Applied the code only to the needed SDKs sections: Javascript, Android, Swift, Obj-C according to onboarding guide here: https://mixpanel.com/report/project_id/view/view_id/setup/

santigracia avatar Mar 04 '24 14:03 santigracia

@santigracia is attempting to deploy a commit to the Mixpanel Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 04 '24 14:03 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2024 0:09am

vercel[bot] avatar Mar 04 '24 17:03 vercel[bot]

Hi @santigracia , looks like the changes here were approved. Our team will be merging changes for smaller PRs moving forward. However, due to time elapsed, could you update the branch then merge the changes?

myronkaifung avatar Apr 23 '24 17:04 myronkaifung

will create a new PR for this as this page has changed to: https://docs.mixpanel.com/docs/quickstart/install-mixpanel

santigracia avatar Aug 20 '24 09:08 santigracia