I have a script to the third party JavaScript library which requires token to be injected dynamically.
I was told to include script below into the head of my html. I need to replace {your_token} in order for this to work. However this token is only available at runtime so I need to inject this script into the header of my application at runtime (init for the application code)
<script>(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel={your_token}...
What is the best way to replace your_token with right token and inject this script at the header of the application?