{"id":28500710,"url":"https://github.com/kaltura/playkit-js-google-analytics","last_synced_at":"2025-07-04T12:31:43.293Z","repository":{"id":31977319,"uuid":"129067365","full_name":"kaltura/playkit-js-google-analytics","owner":"kaltura","description":"Google Analytics plugin for the Kaltura Player","archived":false,"fork":false,"pushed_at":"2025-02-20T14:13:24.000Z","size":2355,"stargazers_count":2,"open_issues_count":30,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-08T15:07:35.389Z","etag":null,"topics":["es6","flow-typed","google-analytics","kaltura","playkit","playkit-js","playkit-js-player"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaltura.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2018-04-11T09:16:10.000Z","updated_at":"2025-02-20T14:13:28.000Z","dependencies_parsed_at":"2025-02-13T14:24:39.166Z","dependency_job_id":"3df87b2e-e5f2-426b-bf35-8b517f40d87a","html_url":"https://github.com/kaltura/playkit-js-google-analytics","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/kaltura/playkit-js-google-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaltura","download_url":"https://codeload.github.com/kaltura/playkit-js-google-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaltura%2Fplaykit-js-google-analytics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263540053,"owners_count":23477454,"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":["es6","flow-typed","google-analytics","kaltura","playkit","playkit-js","playkit-js-player"],"created_at":"2025-06-08T15:07:36.238Z","updated_at":"2025-07-04T12:31:43.288Z","avatar_url":"https://github.com/kaltura.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlayKit JS Google Analytics - Google Analytics plugin for the [Kaltura Player JS]\n\n[![Build Status](https://github.com/kaltura/playkit-js-google-analytics/actions/workflows/run_canary_full_flow.yaml/badge.svg)](https://github.com/kaltura/playkit-js-google-analytics/actions/workflows/run_canary_full_flow.yaml)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-google-analytics/latest.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-google-analytics)\n[![](https://img.shields.io/npm/v/@playkit-js/playkit-js-google-analytics/canary.svg)](https://www.npmjs.com/package/@playkit-js/playkit-js-google-analytics/v/canary)\n\nPlayKit JS Google Analytics plugin integrates google analytics with the [Kaltura Player JS].\n\nPlayKit JS Google Analytics is written in [ECMAScript6], statically analysed using [Flow] and transpiled in ECMAScript5 using [Babel].\n\n[flow]: https://flow.org/\n[ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials\n[babel]: https://babeljs.io\n\n## Getting Started\n\n### Prerequisites\n\nThe plugin requires [Kaltura Player JS] to be loaded first.\n\n[kaltura player js]: https://github.com/kaltura/kaltura-player-js\n\n### Installing\n\nFirst, clone and run [yarn] to install dependencies:\n\n[yarn]: https://yarnpkg.com/lang/en/\n\n```\ngit clone https://github.com/kaltura/playkit-js-google-analytics.git\ncd playkit-js-google-analytics\nyarn install\n```\n\n### Building\n\nThen, build the player\n\n```javascript\nyarn run build\n```\n\n### Embed the library in your test page\n\nFinally, add the bundle as a script tag in your page, and initialize the player\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/PATH/TO/FILE/kaltura-{ovp/tv}-player.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/PATH/TO/FILE/playkit-google-analytics.js\"\u003e\u003c/script\u003e\n\u003cdiv id=\"player-placeholder\" style=\"height:360px; width:640px\"\u003e\n  \u003cscript type=\"text/javascript\"\u003e\n    var config = {\n      targetId: 'player-placeholder',\n      provider: {\n        partnerId: {PARTNER_ID}\n        ...\n      },\n      player: {\n       plugins: {\n         googleAnalytics: {\n           trackingId: 'UA-1234567-89',\n           trackingGA4Id: 'G-0123456789'\n         }\n        ...\n       }\n       ...\n      }\n     ...\n    };\n    var player = KalturaPlayer.setup(config);\n    player.loadMedia({\n      entryId: '{ENTRY_ID}'\n      ...\n    });\n  \u003c/script\u003e\n\u003c/div\u003e\n```\n\n## Documentation\n\n- **[Configuration](docs/configuration.md)**\n\n## Running the tests\n\nTests can be run locally via [Karma], which will run on Chrome, Firefox and Safari\n\n[karma]: https://karma-runner.github.io/1.0/index.html\n\n```\nyarn run test\n```\n\nYou can test individual browsers:\n\n```\nyarn run test:chrome\nyarn run test:firefox\nyarn run test:safari\n```\n\n### And coding style tests\n\nWe use ESLint [recommended set](http://eslint.org/docs/rules/) with some additions for enforcing [Flow] types and other rules.\n\nSee [ESLint config](.eslintrc.json) for full configuration.\n\nWe also use [.editorconfig](.editorconfig) to maintain consistent coding styles and settings, please make sure you comply with the styling.\n\n## Compatibility\n\nTBD\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/kaltura/playkit-js-google-analytics/tags).\n\n## License\n\nThis project is licensed under the AGPL-3.0 License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaltura%2Fplaykit-js-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaltura%2Fplaykit-js-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaltura%2Fplaykit-js-google-analytics/lists"}