{"_id":"@ahdcreative/gtm-core","name":"@ahdcreative/gtm-core","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ahdcreative/gtm-core","version":"1.0.0","description":"A framework-agnostic TypeScript core for Google Tag Manager integration.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup","test":"vitest","check":"biome check .","fix":"biome check --write .","prepare":"npm run build"},"keywords":["google-tag-manager","gtm","framework-agnostic"],"author":{"name":"AHDCreative","url":"https://ahd-creative.agency"},"repository":{"type":"git","url":"git+https://github.com/ahdcreative/gtm-core.git"},"license":"MIT","devDependencies":{"@biomejs/biome":"^2.4.2","cspell":"^9.6.4","jsdom":"^28.1.0","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.18"},"_id":"@ahdcreative/gtm-core@1.0.0","gitHead":"167dcc33c6a56fd84d3b26319cc79bd4b7195083","bugs":{"url":"https://github.com/ahdcreative/gtm-core/issues"},"homepage":"https://github.com/ahdcreative/gtm-core#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-J4U2mR7tjcPq61LD3nYZfbHi7Sgb4f7BRzDcqk5v2GwCzwH1+jFq6utteQoVj25KCwyR3PC/0/yRrz+8OoDN0A==","shasum":"3bc6d44d4b467fc24ab6fd5ae2015477b78b43c3","tarball":"https://registry.npmjs.org/@ahdcreative/gtm-core/-/gtm-core-1.0.0.tgz","fileCount":8,"unpackedSize":18820,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCzyZrhFEVcWNCr7MG7nY4bTfgAXfUUgczoulyJZSl6VAIhAN194SLNCWtd/WjKjYQzSpmH5d8ZfEWIyJznSc90SYV7"}]},"_npmUser":{"name":"ahdluca","email":"luca@ahd-creative.agency"},"directories":{},"maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gtm-core_1.0.0_1771338156925_0.568818855848493"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-17T14:22:36.821Z","1.0.0":"2026-02-17T14:22:37.125Z","modified":"2026-02-17T14:22:37.418Z"},"maintainers":[{"name":"ahdluca","email":"luca@ahd-creative.agency"}],"description":"A framework-agnostic TypeScript core for Google Tag Manager integration.","homepage":"https://github.com/ahdcreative/gtm-core#readme","keywords":["google-tag-manager","gtm","framework-agnostic"],"repository":{"type":"git","url":"git+https://github.com/ahdcreative/gtm-core.git"},"author":{"name":"AHDCreative","url":"https://ahd-creative.agency"},"bugs":{"url":"https://github.com/ahdcreative/gtm-core/issues"},"license":"MIT","readme":"# AHDCreative GTM Core\n\nA framework-agnostic TypeScript core for Google Tag Manager integration.\n\n## Features\n\n-   🏷️ **Type-safe**: Full TypeScript support.\n-   🚀 **Lightweight**: Zero dependencies.\n-   🔒 **Secure**: Support for CSP Nonce.\n-   ⚡ **Performance**: Defer loading support.\n-   🕵️ **NoScript**: Fallback iframe support.\n\n## Installation\n\n```bash\nnpm install @ahdcreative/gtm-core\n```\n\n## Usage\n\n### 1. Initialize GTM\n\n```typescript\nimport { loadGTM, loadNoScript } from '@ahdcreative/gtm-core'\n\nconst options = {\n  id: 'GTM-XXXXXX', // Your GTM ID\n  defer: true,      // optional\n  nonce: 'xyz123'   // optional\n}\n\n// In your app entry point\nloadGTM(options)\nloadNoScript(options) // Optional: for <noscript> support\n```\n\n### 2. Push Events\n\n```typescript\nimport { pushToDataLayer } from '@ahdcreative/gtm-core'\n\npushToDataLayer({\n  event: 'purchase',\n  ecommerce: {\n    currency: 'EUR',\n    value: 29.99\n    // ...\n  }\n})\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-a219148215051e9560e072d34ab19e54"}