react-tag-tracker 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/package.json +3 -3
- package/dist/jest-setup.d.ts +0 -1
- package/dist/tests/click.test.d.ts +0 -1
- package/dist/tests/hover.test.d.ts +0 -1
- package/dist/tests/main.d.ts +0 -9
- package/dist/tests/render.test.d.ts +0 -1
- package/dist/tests/visbility.test.d.ts +0 -1
- /package/dist/{src/TagTrackerContext.d.ts → TagTrackerContext.d.ts} +0 -0
- /package/dist/{src/TagTrackerProvider.d.ts → TagTrackerProvider.d.ts} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight and customizable event tracking library for React that simplifies integration with Google Tag Manager (GTM). It provides tracking for click events, hover interactions and scroll visibility, with the flexibility to customize the tracking attributes and enable/disable features dynamically.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/react-tag-tracker)
|
|
6
|
+
[](https://bundlephobia.com/result?p=react-tag-tracker)
|
|
7
|
+
[](https://www.npmjs.com/package/react-tag-tracker)
|
|
8
|
+
[](https://github.com/tu-usuario/tu-repo/blob/main/LICENSE)
|
|
9
|
+
|
|
10
|
+
|
|
5
11
|
## 🚀 Features
|
|
6
12
|
- **Customizable tracking attribute** (default: `data-track`).
|
|
7
13
|
- **Track click events** on elements with the tracking attribute.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-tag-tracker",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A provider
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "A React provider that simplifies tracking custom events and sends them to window.dataLayer, streamlining integration with GTM.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
"scripts": {
|
|
65
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
65
|
+
"build:types": "tsc -p tsconfig.prod.json --emitDeclarationOnly",
|
|
66
66
|
"build:js": "node esbuild.config.js",
|
|
67
67
|
"build": "pnpm build:types && pnpm build:js",
|
|
68
68
|
"test": "jest",
|
package/dist/jest-setup.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/tests/main.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { render, RenderOptions } from '@testing-library/react';
|
|
2
|
-
import { TagTrackerProviderProps } from '../src';
|
|
3
|
-
import { ReactElement } from 'react';
|
|
4
|
-
interface CustomRenderOptions extends Omit<RenderOptions, "wrapper"> {
|
|
5
|
-
providerProps?: Partial<TagTrackerProviderProps>;
|
|
6
|
-
}
|
|
7
|
-
declare const customRender: (ui: ReactElement, options?: CustomRenderOptions) => ReturnType<typeof render>;
|
|
8
|
-
export * from "@testing-library/react";
|
|
9
|
-
export { customRender as render };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|