@uniformdev/context-gtag 19.35.1 → 19.35.3-alpha.82

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +23 -0
  2. package/package.json +3 -3
@@ -0,0 +1,23 @@
1
+ import { ContextPlugin } from '@uniformdev/context';
2
+
3
+ declare global {
4
+ interface Window {
5
+ __UF_PATCHED_GTAG__?: boolean;
6
+ }
7
+ }
8
+ declare const enableGoogleGtagAnalytics: (options?: {
9
+ /** If true, disables reflecting events passed to gtag into Uniform Context as event signals */
10
+ disableEventSignals?: boolean;
11
+ /** Override the window object that will have the gtag property added to it */
12
+ theWindow?: {
13
+ gtag?: Gtag.Gtag;
14
+ __UF_PATCHED_GTAG__?: boolean;
15
+ };
16
+ /** Whether to emit every personalize and test that occurs, or only if something has actually changed
17
+ * false (default): only emit events when a test assigns a variant the first time, or a personalization chooses different variants than before
18
+ * true: emit an event every time a personalization or test is evaluated (e.g. for vDOM frameworks, each time a re-render occurs)
19
+ */
20
+ emitAll?: boolean;
21
+ }) => ContextPlugin;
22
+
23
+ export { enableGoogleGtagAnalytics };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-gtag",
3
- "version": "19.35.1",
3
+ "version": "19.35.3-alpha.82+4bc341093",
4
4
  "description": "Uniform Context Google global site tag analytics package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "@types/gtag.js": "0.0.12"
30
30
  },
31
31
  "dependencies": {
32
- "@uniformdev/context": "19.35.1"
32
+ "@uniformdev/context": "19.35.3-alpha.82+4bc341093"
33
33
  },
34
34
  "files": [
35
35
  "/dist"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "a85462ec75d379c5447dc625135f828e9d4d7dd6"
40
+ "gitHead": "4bc341093bc946900df2646fe53eca4bcddc693c"
41
41
  }