@uniformdev/context-gtag 19.35.2 → 19.36.0
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/dist/index.d.mts +23 -0
- package/package.json +3 -3
package/dist/index.d.mts
ADDED
|
@@ -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.
|
|
3
|
+
"version": "19.36.0",
|
|
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.
|
|
32
|
+
"@uniformdev/context": "19.36.0"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"/dist"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3ae246a7f0f39adeaf04ecba4c7e48c478c019ad"
|
|
41
41
|
}
|