Hosting the JavaScript Library Yourself
Saving a Copy
In the JavaScript snippet we provide, you are able to assemble the URL of the JavaScript file with your API key:
https://scripts.kissmetrics.io/REPLACE_WITH_YOUR_API_KEY.2.js
Downloading the JS file
Downloading the JS file is as straightforward as visiting that URL and having your browser ‘Save Page As…’
Caveats
If you decide to host the JavaScript Library yourself for the purpose of optimization, there are certain behaviors that will be lost:
- You would not receive code updates to the JavaScript Library, if we add functionality, optimize, or fix bugs.
- The Event Manager will not work since it will update only your hosted JavaScript file.
JS updates
We may consider having a system to notify of JavaScript library updates, but it is currently not on our roadmap.
Updated over 4 years ago