Official Amplitude JS/Web SDK
Installation and Quick Start
- For using the SDK, please visit our 💯Developer Center for instructions on installing and using our the SDK.
- For developing the SDK, please visit our CONTRIBUTING.md to get started.
- A demo page showing a simple integration on a web page.
- A demo page showing an integration using RequireJS.
- A demo page demonstrating a potential integration with Google Tag Manager.
This library now supports react-native. It has two dependencies on react-native modules you will have to install yourself:
- react-native-device-info Tested with version 3.1.4
- @react-native-community/async-storage Tested with version 1.6.2
Please visit Amplitude-Node for our Node SDK.
Upgrading Major Versions and Breaking Changes
The cookie format has been changed to be more compact. If you use the same Amplitude project(API key) across multiple applications, and you track anonymous users across those applications, you will want to update amplitude across all those applications at the same time. Otherwise these anonymous users will have a different device id in your different applications.
If you do not have multiple installations of amplitude, or if you do not track anonymous users across different installations of amplitude, this change should not affect you.
We stopped committing the generated amplitude.min.js and amplitude.js files to
the repository. This should only affect you if you load amplitude via github.
You should use
We dropped our custom symbian and blackberry user agent parsing to simply match what the ua-parser-js library does.
The library now defaults to sending requests to https://api.amplitude.com instead of //api.amplitude.com. This should only affect you if your site does not use https and you use a Content Security Policy.
If you have any problems or issues over our SDK, feel free to create a github issue or submit a request on Amplitude Help.