{"id":28759761,"url":"https://github.com/amplitude/amplitude-javascript","last_synced_at":"2025-06-17T05:08:12.922Z","repository":{"id":6333119,"uuid":"7568671","full_name":"amplitude/Amplitude-JavaScript","owner":"amplitude","description":"JavaScript SDK for Amplitude","archived":false,"fork":false,"pushed_at":"2024-05-21T23:16:21.000Z","size":6303,"stargazers_count":321,"open_issues_count":60,"forks_count":133,"subscribers_count":97,"default_branch":"v8.x","last_synced_at":"2025-06-17T05:08:11.300Z","etag":null,"topics":["amplitude","amplitude-javascript","amplitude-js","analytics","best","javascript","js","sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amplitude.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-11T23:04:28.000Z","updated_at":"2025-05-15T10:11:41.000Z","dependencies_parsed_at":"2024-05-03T06:25:42.979Z","dependency_job_id":"ce6ce1d8-b695-4fa7-a187-e870678d7ac3","html_url":"https://github.com/amplitude/Amplitude-JavaScript","commit_stats":{"total_commits":713,"total_committers":60,"mean_commits":"11.883333333333333","dds":0.6535764375876578,"last_synced_commit":"94e9d610a454699655d9b06a3f108d15641db4ef"},"previous_names":[],"tags_count":132,"template":false,"template_full_name":null,"purl":"pkg:github/amplitude/Amplitude-JavaScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amplitude%2FAmplitude-JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amplitude%2FAmplitude-JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amplitude%2FAmplitude-JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amplitude%2FAmplitude-JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amplitude","download_url":"https://codeload.github.com/amplitude/Amplitude-JavaScript/tar.gz/refs/heads/v8.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amplitude%2FAmplitude-JavaScript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294467,"owners_count":22987625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amplitude","amplitude-javascript","amplitude-js","analytics","best","javascript","js","sdk"],"created_at":"2025-06-17T05:08:11.737Z","updated_at":"2025-06-17T05:08:12.897Z","avatar_url":"https://github.com/amplitude.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://amplitude.com\" target=\"_blank\" align=\"center\"\u003e\n    \u003cimg src=\"https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg\" width=\"280\"\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n  [![Test](https://github.com/amplitude/Amplitude-JavaScript/workflows/Test/badge.svg)](https://github.com/amplitude/Amplitude-JavaScript/actions?query=workflow%3ATest)\n  [![npm version](https://badge.fury.io/js/amplitude-js.svg)](https://badge.fury.io/js/amplitude-js)\n  [![Bower version](https://badge.fury.io/bo/amplitude-js.svg)](https://badge.fury.io/bo/amplitude-js)\n\n\u003c/div\u003e\n\n# Announcement 📣\n\nAmplitude is introducing a new [TypeScript SDK for Browser](https://www.npmjs.com/package/@amplitude/analytics-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.\n\nTo learn more about the new SDK, here are some useful links:\n\n* NPM: https://www.npmjs.com/package/@amplitude/analytics-browser\n* GitHub: https://github.com/amplitude/Amplitude-TypeScript\n* Documentation: https://www.docs.developers.amplitude.com/data/sdks/browser-2\n\n# Amplitude JS/Web SDK\nA JavaScript SDK for tracking events and revenue to [Amplitude](https://www.amplitude.com).\n\n## Amplitude and Ampli SDK\n[Ampli SDK](https://developers.data.amplitude.com/ampli-sdk-overview/) is autogenerated library based on your pre-defined [tracking plan](https://developers.data.amplitude.com/what-is-a-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](https://developers.data.amplitude.com/browser-ampli) and [examples](https://github.com/amplitude/ampli-examples).\n\n## Installation and Quick Start\n* For using the SDK, please visit our :100:[Developer Center](https://developers.amplitude.com/docs/javascript).\n* For developing the SDK, please visit our [CONTRIBUTING.md](https://github.com/amplitude/Amplitude-JavaScript/blob/main/CONTRIBUTING.md).\n\n## Demo Pages\n* A [demo page](https://github.com/amplitude/Amplitude-JavaScript/blob/main/test/browser/amplitudejs.html) showing a simple integration on a web page.\n* A [demo page](https://github.com/amplitude/Amplitude-JavaScript/blob/main/test/browser/amplitudejs-requirejs.html) showing an integration using RequireJS.\n* A [demo page](https://github.com/amplitude/GTM-Web-Demo) demonstrating a potential integration with Google Tag Manager.\n\n\n## Deprecated - React Native\nAs of \u003e= 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](https://github.com/amplitude/Amplitude-ReactNative)\n\nPreviously used amplitude-js and looking to migrate to @amplitude/react-native?\n* Please follow the steps detailed in our [migration guide](https://github.com/amplitude/Amplitude-ReactNative/blob/main/MIGRATION_GUIDE.md)\n\n## Node.js\nPlease visit [Amplitude-Node](https://github.com/amplitude/Amplitude-Node) for our Node SDK.\n\n## Changelog\nClick [here](https://github.com/amplitude/Amplitude-JavaScript/blob/main/CHANGELOG.md) to view the JavaScript SDK Changelog.\n\n## Upgrading Major Versions and Breaking Changes #\n\n### 6.0\nThe cookie format has been changed to be more compact. If you use the same\nAmplitude project(API key) across multiple applications, and you track\nanonymous users across those applications, you will want to update amplitude\nacross all those applications at the same time. Otherwise these anonymous users\nwill have a different device id in your different applications.\n\nIf you do not have multiple installations of amplitude, or if you do not track\nanonymous users across different installations of amplitude, this change should\nnot affect you.\n\n### 5.0\nWe stopped committing the generated amplitude.min.js and amplitude.js files to\nthe repository. This should only affect you if you load amplitude via github.\nYou should use `npm` or `yarn` instead.\n\nWe dropped our custom symbian and blackberry user agent parsing to simply match\nwhat the ua-parser-js library does.\n\n### 4.0\nThe library now defaults to sending requests to https://api.amplitude.com\ninstead of //api.amplitude.com. This should only affect you if your site does\nnot use https and you use a Content Security Policy.\n\n## Need Help?\nIf you have any problems or issues over our SDK, feel free to create a github issue or submit a request on [Amplitude Help](https://help.amplitude.com/hc/en-us/requests/new).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famplitude%2Famplitude-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famplitude%2Famplitude-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famplitude%2Famplitude-javascript/lists"}