• Stars
    star
    305
  • Rank 136,852 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JavaScript SDK for Amplitude


Test npm version Bower version

Announcement πŸ“£

Amplitude is introducing a new TypeScript SDK for Browser. This new SDK provides improved developer experience, helps users instrument data more seamlessly and provide more control over data being instrumented using custom plugins.

To learn more about the new SDK, here are some useful links:

Official Amplitude JS/Web SDK

A JavaScript SDK for tracking events and revenue to Amplitude.

Amplitude and Ampli SDK

Ampli SDK is autogenerated library based on your pre-defined tracking plan. The Ampli SDK, is a lightweight wrapper over the Amplitude SDK that provides type-safety, supports linting, and enables features like input validation. The code replicates the spec in the Tracking Plan and enforces its rules and requirements. This repository is about Amplitude SDK. To learn more about Ampli SDK, please refer to the Ampli Browser and examples.

Installation and Quick Start

Demo Pages

  • 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.

Deprecated - React Native

As of >= v8.0.0, this SDK no longer has support for React Native. We recently released a new SDK focused on providing a React Native first approach to using Amplitude in cross-platform projects. Amplitude React Native SDK

Previously used amplitude-js and looking to migrate to @amplitude/react-native?

Node.js

Please visit Amplitude-Node for our Node SDK.

Changelog

Click here to view the JavaScript SDK Changelog.

Upgrading Major Versions and Breaking Changes

6.0

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.

5.0

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 npm or yarn instead.

We dropped our custom symbian and blackberry user agent parsing to simply match what the ua-parser-js library does.

4.0

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.

Need Help?

If you have any problems or issues over our SDK, feel free to create a github issue or submit a request on Amplitude Help.

More Repositories

1

redux-query

A library for managing network state in Redux
JavaScript
1,103
star
2

Amplitude-iOS

Native iOS/tvOS/macOS SDK
Objective-C
303
star
3

Amplitude-Android

Native Android SDK for Amplitude
Java
160
star
4

Amplitude-TypeScript

TypeScript Amplitude Analytics SDK
TypeScript
132
star
5

react-amplitude

A React component library for easy product analytics instrumentation (deprecated)
JavaScript
116
star
6

Amplitude-Flutter

Official Amplitude Flutter SDK
Dart
89
star
7

Amplitude-ReactNative

Official Amplitude React Native SDK
TypeScript
81
star
8

Amplitude-Node

Server-side Node.js SDK for Amplitude
TypeScript
68
star
9

unity-plugin

Official Amplitude Unity Plugin
C++
42
star
10

Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
Swift
32
star
11

Amplitude-Kotlin

Amplitude Kotlin SDK
Kotlin
28
star
12

Amplitude-Flutter-Deprecated

Amplitude's Flutter SDK
Dart
27
star
13

Amplitude-Python

Python Amplitude Analytics SDK
Python
22
star
14

GTM-Web-Demo

Web demo app for Google Tag Manager + Amplitude integration
HTML
19
star
15

amplitude-dev-center

Amplitude's Developer Center docs.
HTML
18
star
16

itly-sdk

Iteratively Analytics SDK for browsers and Node β€” JavaScript & TypeScript
TypeScript
18
star
17

analytics-go

Go Amplitude Analytics SDK
Go
11
star
18

ampli-examples

Example apps using the Ampli SDK
Java
9
star
19

Amplitude-Unreal

Unreal Engine SDK/Plugin for Amplitude
Objective-C
8
star
20

storybook-addon-amplitude

JavaScript
8
star
21

GTM-Android-Demo

Android demo app for Google Tag Manager + Amplitude integration
Java
8
star
22

experiment-js-client

Amplitude Experiment client-side SDK for JavaScript
TypeScript
7
star
23

amplitude-gtm-template

Smarty
6
star
24

itly-sdk-ios

Iteratively Analytics SDK for iOS β€” Swift & Objective-C
Swift
6
star
25

Amplitude-Java

Official Amplitude Java SDK
Java
6
star
26

experiment-react-native-client

React Native Client SDK for Amplitude Experiment
TypeScript
6
star
27

amplitude-js-gtm

Amplitude JS wrapper for GTM custom template
JavaScript
5
star
28

experiment-android-client

Kotlin
4
star
29

itly-sdk-jvm

Iteratively Analytics SDK for JVM β€” Android, Kotlin & Java
Kotlin
4
star
30

amplitude-figma

Personal workspace for amplitude figma
TypeScript
4
star
31

experiment-go-server

Amplitude Experiment Server-side SDK for Go
Go
4
star
32

GTM-iOS-Demo

iOS demo app for Google Tag Manager + Amplitude integration
Objective-C
4
star
33

experiment-implementation-examples

A repository of examples implementations of Amplitude Experiment
TypeScript
3
star
34

experiment-python-server

Amplitude Experiment Python Server SDK
Python
3
star
35

amplitude-server-gtm-template

Amplitude Server Side GTM Template
Smarty
3
star
36

experiment-ios-client

Swift
3
star
37

itly-sdk-ruby

Iteratively SDK for Ruby
Ruby
2
star
38

experiment-node-server

TypeScript
2
star
39

GTM-cross-domain-script

HTML
2
star
40

ai-product-hackathon

Documentation and starter code for the 2023 AI x Product Hackathon
Python
2
star
41

homebrew-ampli

Homebrew Formulae for Ampli CLI
Ruby
2
star
42

experiment-evaluation

Kotlin multiplatform experiment evaluation library
Kotlin
2
star
43

itly-sdk-python

Iteratively Analytics SDK for Python
Python
2
star
44

experiment-jvm-server

Amplitude Experiment Server-side SDK for the Java and Kotlin
Kotlin
2
star
45

experiment-ruby-server

Amplitude Experiment Ruby Server SDK
Ruby
2
star
46

experiment-php-server

Amplitude Experiment PHP Server SDK
PHP
2
star
47

amplitude-browser-sdk-gtm-template

The amplitude GTM template with @amplitude/analytics-browser internal
Smarty
2
star
48

amplitude-ios-core

Swift
1
star
49

iOS-Demo-Carthage

iOS demo app testing Carthage support for Amplitude-iOS SDK
Objective-C
1
star
50

Android-Demo

Simple tilt maze game with Amplitude integration
Java
1
star
51

corona-plugin

Amplitude plugin for Corona
Lua
1
star
52

chrome-extension-demo

JavaScript
1
star
53

skylab-reactnative-client

Java
1
star
54

Segment-Android-Demo

Java
1
star
55

skylab-button-demo

Demo for moving a button
JavaScript
1
star
56

evaluation-proxy-helm

A Helm chart for deploying the Amplitude Experiment Evaluation Proxy on Kubernetes.
Smarty
1
star
57

amplitude-win

Amplitude SDK for Windows Apps
C#
1
star