@shopana/ga
Version:
Type-safe Google Analytics 4 (GA4) tracking library for React and Next.js with ecommerce support, event batching, and SSR compatibility
118 lines (117 loc) • 3.07 kB
JSON
{
"name": "@shopana/ga",
"version": "0.0.1-alpha",
"description": "Type-safe Google Analytics 4 (GA4) tracking library for React and Next.js with ecommerce support, event batching, and SSR compatibility",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.js",
"require": "./dist/react/index.js",
"default": "./dist/react/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc",
"type-check": "tsc --noEmit",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\"",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"prepublishOnly": "npm run build && npm run type-check && npm run lint && npm run format:check && npm run test",
"prepare": "npm run build"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": false
}
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/node": "^24.3.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "5",
"@typescript-eslint/parser": "5",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"eslint": "8",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "7",
"eslint-plugin-react-hooks": "4",
"prettier": "^3.2.5",
"jsdom": "^25.0.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
},
"keywords": [
"analytics",
"conversion-tracking",
"ecommerce",
"ecommerce-tracking",
"enhanced-ecommerce",
"event-tracking",
"ga4",
"google-analytics",
"google-analytics-4",
"gtag",
"measurement-protocol",
"next.js",
"nextjs",
"page-tracking",
"react",
"ssr",
"tracking",
"type-safe",
"typescript",
"web-vitals"
],
"author": {
"name": "Shopana",
"url": "https://github.com/shopanaio"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/shopanaio/ga.git",
"directory": "."
},
"bugs": {
"url": "https://github.com/shopanaio/ga/issues"
},
"homepage": "https://github.com/shopanaio/ga#readme",
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"sideEffects": false
}