{"library":"react-gtm-module","type":"library","category":null,"description":"react-gtm-module is a JavaScript library designed for React applications to streamline the integration of Google Tag Manager (GTM). It provides a programmatic API for managing the GTM snippet, initializing GTM with a specific container ID, and interacting with the `dataLayer` object. The current stable version is 2.0.11, last updated in November 2022. While the package remains functional, the original repository (alinemorelli/react-gtm) has seen limited activity since late 2020, with many pull requests and issues unaddressed. A community-maintained fork, `@sooro-io/react-gtm-module`, has emerged to provide continued development, TypeScript support, and additional features like CSP nonce and custom GTM script URLs. This original package (`react-gtm-module`) offers a straightforward abstraction for common GTM operations, simplifying custom `dataLayer` pushes, multiple `dataLayer` instances, and environment-specific GTM configurations without direct `window.dataLayer` manipulation.","language":"javascript","status":"maintenance","version":"2.0.11","tags":["javascript","react","reactjs","react-component","google tag manager","tag manager","gtm"],"install":[{"cmd":"npm install react-gtm-module","imports":["import TagManager from 'react-gtm-module'","TagManager.initialize({ gtmId: 'GTM-XXXXXX' })","TagManager.dataLayer({ dataLayer: { event: 'productClick', productId: '123' } })"]},{"cmd":"yarn add react-gtm-module","imports":[]},{"cmd":"pnpm add react-gtm-module","imports":[]}],"homepage":null,"github":"https://github.com/alinemorelli/react-gtm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-gtm-module","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-gtm-module/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}