@walkeros/web-destination-gtag 2.0.0 → 2.1.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/dev.d.mts +16 -54
- package/dist/dev.d.ts +16 -54
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +10 -49
- package/dist/examples/index.d.ts +10 -49
- package/dist/examples/index.js +111 -219
- package/dist/examples/index.mjs +110 -217
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/walkerOS.json +306 -233
- package/package.json +2 -2
package/dist/dev.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
|
+
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Include configuration for GA4
|
|
@@ -121,10 +121,10 @@ declare const MappingSchema: z.ZodObject<{
|
|
|
121
121
|
/**
|
|
122
122
|
* Type inference from MappingSchema
|
|
123
123
|
*/
|
|
124
|
-
type Mapping
|
|
124
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
125
125
|
|
|
126
126
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
127
|
-
declare const mapping
|
|
127
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
128
128
|
declare const ga4: _walkeros_core_dev.JSONSchema;
|
|
129
129
|
declare const ads: _walkeros_core_dev.JSONSchema;
|
|
130
130
|
declare const gtm: _walkeros_core_dev.JSONSchema;
|
|
@@ -134,15 +134,17 @@ declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
|
134
134
|
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
135
|
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
136
|
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
|
+
type index$1_Mapping = Mapping;
|
|
137
138
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
138
139
|
type index$1_Settings = Settings;
|
|
139
140
|
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
140
141
|
declare const index$1_ads: typeof ads;
|
|
141
142
|
declare const index$1_ga4: typeof ga4;
|
|
142
143
|
declare const index$1_gtm: typeof gtm;
|
|
144
|
+
declare const index$1_mapping: typeof mapping;
|
|
143
145
|
declare const index$1_settings: typeof settings;
|
|
144
146
|
declare namespace index$1 {
|
|
145
|
-
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type
|
|
147
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, index$1_mapping as mapping, index$1_settings as settings };
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
declare global {
|
|
@@ -168,21 +170,6 @@ interface Env extends DestinationWeb.Env {
|
|
|
168
170
|
};
|
|
169
171
|
};
|
|
170
172
|
}
|
|
171
|
-
interface AdsMapping {
|
|
172
|
-
label?: string;
|
|
173
|
-
}
|
|
174
|
-
interface Mapping {
|
|
175
|
-
ga4?: GA4Mapping;
|
|
176
|
-
ads?: AdsMapping;
|
|
177
|
-
gtm?: GTMMapping;
|
|
178
|
-
}
|
|
179
|
-
interface GA4Mapping {
|
|
180
|
-
include?: Include;
|
|
181
|
-
}
|
|
182
|
-
interface GTMMapping {
|
|
183
|
-
}
|
|
184
|
-
type Rule = Mapping$2.Rule<Mapping>;
|
|
185
|
-
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
186
173
|
|
|
187
174
|
declare const init: Env | undefined;
|
|
188
175
|
declare const push: Env;
|
|
@@ -195,46 +182,21 @@ declare namespace env {
|
|
|
195
182
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
196
183
|
}
|
|
197
184
|
|
|
198
|
-
declare
|
|
199
|
-
declare
|
|
200
|
-
declare
|
|
201
|
-
declare function gtmEvent(): Record<string, unknown>;
|
|
202
|
-
|
|
203
|
-
declare const events_gtmEvent: typeof gtmEvent;
|
|
204
|
-
declare namespace events {
|
|
205
|
-
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
declare const ga4Purchase: Rule;
|
|
209
|
-
declare const ga4AddToCart: Rule;
|
|
210
|
-
declare const adsConversion: Rule;
|
|
211
|
-
declare const gtmProductView: Rule;
|
|
212
|
-
declare const combinedPurchase: Rule;
|
|
213
|
-
declare const config: {
|
|
214
|
-
order: {
|
|
215
|
-
complete: Rule;
|
|
216
|
-
};
|
|
217
|
-
product: {
|
|
218
|
-
add: Rule;
|
|
219
|
-
view: Rule;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
185
|
+
declare const purchase: Flow.StepExample;
|
|
186
|
+
declare const addToCart: Flow.StepExample;
|
|
187
|
+
declare const pageView: Flow.StepExample;
|
|
222
188
|
|
|
223
|
-
declare const
|
|
224
|
-
declare const
|
|
225
|
-
declare const
|
|
226
|
-
declare
|
|
227
|
-
|
|
228
|
-
declare const mapping_gtmProductView: typeof gtmProductView;
|
|
229
|
-
declare namespace mapping {
|
|
230
|
-
export { mapping_adsConversion as adsConversion, mapping_combinedPurchase as combinedPurchase, mapping_config as config, mapping_ga4AddToCart as ga4AddToCart, mapping_ga4Purchase as ga4Purchase, mapping_gtmProductView as gtmProductView };
|
|
189
|
+
declare const step_addToCart: typeof addToCart;
|
|
190
|
+
declare const step_pageView: typeof pageView;
|
|
191
|
+
declare const step_purchase: typeof purchase;
|
|
192
|
+
declare namespace step {
|
|
193
|
+
export { step_addToCart as addToCart, step_pageView as pageView, step_purchase as purchase };
|
|
231
194
|
}
|
|
232
195
|
|
|
233
196
|
declare const index_env: typeof env;
|
|
234
|
-
declare const
|
|
235
|
-
declare const index_mapping: typeof mapping;
|
|
197
|
+
declare const index_step: typeof step;
|
|
236
198
|
declare namespace index {
|
|
237
|
-
export { index_env as env,
|
|
199
|
+
export { index_env as env, index_step as step };
|
|
238
200
|
}
|
|
239
201
|
|
|
240
202
|
export { index as examples, index$1 as schemas };
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
|
+
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Include configuration for GA4
|
|
@@ -121,10 +121,10 @@ declare const MappingSchema: z.ZodObject<{
|
|
|
121
121
|
/**
|
|
122
122
|
* Type inference from MappingSchema
|
|
123
123
|
*/
|
|
124
|
-
type Mapping
|
|
124
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
125
125
|
|
|
126
126
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
127
|
-
declare const mapping
|
|
127
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
128
128
|
declare const ga4: _walkeros_core_dev.JSONSchema;
|
|
129
129
|
declare const ads: _walkeros_core_dev.JSONSchema;
|
|
130
130
|
declare const gtm: _walkeros_core_dev.JSONSchema;
|
|
@@ -134,15 +134,17 @@ declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
|
134
134
|
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
135
|
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
136
|
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
|
+
type index$1_Mapping = Mapping;
|
|
137
138
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
138
139
|
type index$1_Settings = Settings;
|
|
139
140
|
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
140
141
|
declare const index$1_ads: typeof ads;
|
|
141
142
|
declare const index$1_ga4: typeof ga4;
|
|
142
143
|
declare const index$1_gtm: typeof gtm;
|
|
144
|
+
declare const index$1_mapping: typeof mapping;
|
|
143
145
|
declare const index$1_settings: typeof settings;
|
|
144
146
|
declare namespace index$1 {
|
|
145
|
-
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type
|
|
147
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, index$1_mapping as mapping, index$1_settings as settings };
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
declare global {
|
|
@@ -168,21 +170,6 @@ interface Env extends DestinationWeb.Env {
|
|
|
168
170
|
};
|
|
169
171
|
};
|
|
170
172
|
}
|
|
171
|
-
interface AdsMapping {
|
|
172
|
-
label?: string;
|
|
173
|
-
}
|
|
174
|
-
interface Mapping {
|
|
175
|
-
ga4?: GA4Mapping;
|
|
176
|
-
ads?: AdsMapping;
|
|
177
|
-
gtm?: GTMMapping;
|
|
178
|
-
}
|
|
179
|
-
interface GA4Mapping {
|
|
180
|
-
include?: Include;
|
|
181
|
-
}
|
|
182
|
-
interface GTMMapping {
|
|
183
|
-
}
|
|
184
|
-
type Rule = Mapping$2.Rule<Mapping>;
|
|
185
|
-
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
186
173
|
|
|
187
174
|
declare const init: Env | undefined;
|
|
188
175
|
declare const push: Env;
|
|
@@ -195,46 +182,21 @@ declare namespace env {
|
|
|
195
182
|
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
196
183
|
}
|
|
197
184
|
|
|
198
|
-
declare
|
|
199
|
-
declare
|
|
200
|
-
declare
|
|
201
|
-
declare function gtmEvent(): Record<string, unknown>;
|
|
202
|
-
|
|
203
|
-
declare const events_gtmEvent: typeof gtmEvent;
|
|
204
|
-
declare namespace events {
|
|
205
|
-
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
declare const ga4Purchase: Rule;
|
|
209
|
-
declare const ga4AddToCart: Rule;
|
|
210
|
-
declare const adsConversion: Rule;
|
|
211
|
-
declare const gtmProductView: Rule;
|
|
212
|
-
declare const combinedPurchase: Rule;
|
|
213
|
-
declare const config: {
|
|
214
|
-
order: {
|
|
215
|
-
complete: Rule;
|
|
216
|
-
};
|
|
217
|
-
product: {
|
|
218
|
-
add: Rule;
|
|
219
|
-
view: Rule;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
185
|
+
declare const purchase: Flow.StepExample;
|
|
186
|
+
declare const addToCart: Flow.StepExample;
|
|
187
|
+
declare const pageView: Flow.StepExample;
|
|
222
188
|
|
|
223
|
-
declare const
|
|
224
|
-
declare const
|
|
225
|
-
declare const
|
|
226
|
-
declare
|
|
227
|
-
|
|
228
|
-
declare const mapping_gtmProductView: typeof gtmProductView;
|
|
229
|
-
declare namespace mapping {
|
|
230
|
-
export { mapping_adsConversion as adsConversion, mapping_combinedPurchase as combinedPurchase, mapping_config as config, mapping_ga4AddToCart as ga4AddToCart, mapping_ga4Purchase as ga4Purchase, mapping_gtmProductView as gtmProductView };
|
|
189
|
+
declare const step_addToCart: typeof addToCart;
|
|
190
|
+
declare const step_pageView: typeof pageView;
|
|
191
|
+
declare const step_purchase: typeof purchase;
|
|
192
|
+
declare namespace step {
|
|
193
|
+
export { step_addToCart as addToCart, step_pageView as pageView, step_purchase as purchase };
|
|
231
194
|
}
|
|
232
195
|
|
|
233
196
|
declare const index_env: typeof env;
|
|
234
|
-
declare const
|
|
235
|
-
declare const index_mapping: typeof mapping;
|
|
197
|
+
declare const index_step: typeof step;
|
|
236
198
|
declare namespace index {
|
|
237
|
-
export { index_env as env,
|
|
199
|
+
export { index_env as env, index_step as step };
|
|
238
200
|
}
|
|
239
201
|
|
|
240
202
|
export { index as examples, index$1 as schemas };
|