@metarouter/ajs-starter-kit 1.0.40 → 1.0.43
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/actioniq/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/actioniq/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/actioniq/kit.etag.json +1 -1
- package/.dist/acuity-ads/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/acuity-ads/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/acuity-ads/kit.etag.json +1 -1
- package/.dist/adobe/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/adobe/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/adobe/kit.etag.json +1 -1
- package/.dist/amazon-redshift-v2/connection.etag.json +1 -0
- package/.dist/amazon-redshift-v2/connection.json +17 -0
- package/.dist/amazon-redshift-v2/kit.etag.json +1 -1
- package/.dist/amnet/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/amnet/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/amnet/kit.etag.json +1 -1
- package/.dist/amobee/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/amobee/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/amobee/kit.etag.json +1 -1
- package/.dist/amplitude/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/amplitude/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/apps-flyer-android/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/apps-flyer-android/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/apps-flyer-android/kit.etag.json +1 -1
- package/.dist/apps-flyer-ios/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/apps-flyer-ios/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/apps-flyer-ios/kit.etag.json +1 -1
- package/.dist/bing-ads/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/bing-ads/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/blob/connection.etag.json +1 -0
- package/.dist/blob/connection.json +8 -0
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/blueshift/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/blueshift/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/braze/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/braze/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/criteo/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/criteo/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/facebook-pixel/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/facebook-pixel/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/gcs/connection.etag.json +1 -0
- package/.dist/gcs/connection.json +7 -0
- package/.dist/gcs/kit.etag.json +1 -1
- package/.dist/google-ad-words/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/google-ad-words/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/google-ad-words/kit.etag.json +1 -1
- package/.dist/google-analytics/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/google-analytics/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/google-analytics/kit.etag.json +1 -1
- package/.dist/google-analytics-4/connection.etag.json +1 -0
- package/.dist/google-analytics-4/connection.json +26 -0
- package/.dist/google-analytics-4/kit.etag.json +1 -0
- package/.dist/google-analytics-4/metadata.json +23 -0
- package/.dist/google-analytics-4/playbook.etag.json +1 -0
- package/.dist/google-analytics-4/playbook.json +229 -0
- package/.dist/google-bigquery-streaming/connection.etag.json +1 -0
- package/.dist/google-bigquery-streaming/connection.json +8 -0
- package/.dist/google-bigquery-streaming/kit.etag.json +1 -1
- package/.dist/google-cm360/connection.etag.json +1 -0
- package/.dist/google-cm360/connection.json +6 -0
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-double-click/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/google-double-click/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/google-double-click/kit.etag.json +1 -1
- package/.dist/google-pubsub/connection.etag.json +1 -0
- package/.dist/google-pubsub/connection.json +7 -0
- package/.dist/google-pubsub/kit.etag.json +1 -1
- package/.dist/impact-radius/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/impact-radius/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/impact-radius/kit.etag.json +1 -1
- package/.dist/in-market/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/in-market/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/in-market/kit.etag.json +1 -1
- package/.dist/kafka/connection.etag.json +1 -0
- package/.dist/kafka/connection.json +16 -0
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kinesis/connection.etag.json +1 -0
- package/.dist/kinesis/connection.json +9 -0
- package/.dist/kinesis/kit.etag.json +1 -1
- package/.dist/lytics/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/lytics/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/lytics/kit.etag.json +1 -1
- package/.dist/media-math/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/media-math/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/media-math/kit.etag.json +1 -1
- package/.dist/merkle/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/merkle/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/merkle/kit.etag.json +1 -1
- package/.dist/mixpanel/connection.etag.json +1 -0
- package/.dist/mixpanel/{endpoint_schema.json → connection.json} +21 -0
- package/.dist/mixpanel/kit.etag.json +1 -1
- package/.dist/mixpanel/playbook.etag.json +1 -1
- package/.dist/mixpanel/playbook.json +43 -32
- package/.dist/movable-ink/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/movable-ink/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/movable-ink/kit.etag.json +1 -1
- package/.dist/pinterest/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/pinterest/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/pinterest/kit.etag.json +1 -1
- package/.dist/rev-jet/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/rev-jet/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/rev-jet/kit.etag.json +1 -1
- package/.dist/roomvo/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/roomvo/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/s3/connection.etag.json +1 -0
- package/.dist/s3/connection.json +8 -0
- package/.dist/s3/kit.etag.json +1 -1
- package/.dist/salesforce-cdp/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/salesforce-cdp/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/salesforce-cdp/kit.etag.json +1 -1
- package/.dist/snapchat/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/snapchat/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/snapchat/kit.etag.json +1 -1
- package/.dist/snowflake/connection.etag.json +1 -0
- package/.dist/snowflake/connection.json +16 -0
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/twitter-conversions/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/twitter-conversions/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/twitter-conversions/kit.etag.json +1 -1
- package/.dist/verizon-media/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/verizon-media/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/verizon-media/kit.etag.json +1 -1
- package/.dist/xandr/{endpoint_schema.etag.json → connection.etag.json} +0 -0
- package/.dist/xandr/{endpoint_schema.json → connection.json} +0 -0
- package/.dist/xandr/kit.etag.json +1 -1
- package/index.js +74 -62
- package/package.json +1 -1
- package/.dist/mixpanel/endpoint_schema.etag.json +0 -1
- package/.dist/snowflake/endpoint_schema.etag.json +0 -1
- package/.dist/snowflake/endpoint_schema.json +0 -6
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"4cd1202bf6417090feade0ad1ef59a24"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"7a8592fdcc2c2e599fdbb93536740058"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"9d24472e546d28d4bdf94d2f0da51b0d"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"eeda0ad0e6e29b0e4c74a37861e207d4"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"amazon_redshift_v2": {
|
|
3
|
+
"load_cadence": "6h",
|
|
4
|
+
"user": "my-user",
|
|
5
|
+
"password": "my-password",
|
|
6
|
+
"host": "my-host",
|
|
7
|
+
"port": "my-port",
|
|
8
|
+
"database": "my-database",
|
|
9
|
+
"schema": "my-schema",
|
|
10
|
+
"s3": {
|
|
11
|
+
"region": "us-east-1",
|
|
12
|
+
"bucket": "my-bucket",
|
|
13
|
+
"access_key": "my-access-key",
|
|
14
|
+
"secret_key": "my-access-secret"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6d323e4952237cb48cfbb7040ce194f3"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0090ab0e092ff5dfbad2d7f35d0f6ba8"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"da5cac7dc2493b3063f5aa9630142821"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3b456b3bbb887fe7f2d513efdb6f0e7c"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e075cebb07ef4e0fb7a3efaa300601a2"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"18ac0031ca89c0be2e637cebd2b359ca"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0ded8702f4046b4d4cf947476ef4e43a"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"effd705a412c9b2e98fa8757d3b1bb35"
|
package/.dist/blob/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3344542df7dcf66d2a464f8e6fca4507"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f4bd49f6f16693983da50442d811e840"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a8b238726f2adcc5c83996a1233d2d8b"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f3e591ddc01efb5a28eda37c473a8488"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e92e0cb09cd862b98dd9cd929c1f0f35"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"dadbbdd67d38c698b4419983c67bb315"
|
package/.dist/gcs/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1f870ec5355cd062e09df40e558a9faa"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e5d806ee0f213886a7d6feb05b213fdb"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"5a8bd04599bc1f34fe6fe1ddd0cbfae4"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"861bbf3e2f69d82bc666d311ea580f62"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default": {
|
|
3
|
+
"endpoint": "https://www.google-analytics.com/mp/collect?api_secret=$$API_SECRET$$&measurement_id=$$MEASUREMENT_ID$$",
|
|
4
|
+
"method": "POST",
|
|
5
|
+
"headers": [
|
|
6
|
+
{
|
|
7
|
+
"key": "Content-Type",
|
|
8
|
+
"value": "application/json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"key": "Accept-Encoding",
|
|
12
|
+
"value": "application/json"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"params": [
|
|
17
|
+
{
|
|
18
|
+
"name": "API_SECRET",
|
|
19
|
+
"exampleValue": "my-api-secret"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "MEASUREMENT_ID",
|
|
23
|
+
"exampleValue": "my-measurement-id"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"e5c3af010c18e1c5f58f83566ea8cdf5"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"friendlyName": "Google Analytics 4",
|
|
4
|
+
"description": "Google Analytics gives you tools to help you better understand your customers so you can improve your website and drive better results.",
|
|
5
|
+
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
6
|
+
"color": "#ff7600",
|
|
7
|
+
"eventSource": {
|
|
8
|
+
"isAndroidApp": true,
|
|
9
|
+
"isIosApp": true,
|
|
10
|
+
"isWebApp": true
|
|
11
|
+
},
|
|
12
|
+
"inputSchema": "analytics_js",
|
|
13
|
+
"releaseNotes": [
|
|
14
|
+
{
|
|
15
|
+
"date": "2022-08-11T00:00:00.000Z",
|
|
16
|
+
"note": "Google Analytics 4 initial release."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"date": "2022-08-19T00:00:00.000Z",
|
|
20
|
+
"note": "Fix outputKey client_id"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"e46016add43281e1f7795a7a832f8ec9"
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "v0.0.1",
|
|
3
|
+
"global": {
|
|
4
|
+
"mappings": [
|
|
5
|
+
{
|
|
6
|
+
"inputKey": "userId",
|
|
7
|
+
"outputKey": "user_id"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"inputKey": "input",
|
|
11
|
+
"outputKey": "client_id",
|
|
12
|
+
"transforms": [
|
|
13
|
+
{
|
|
14
|
+
"expression": {
|
|
15
|
+
"body": "local value = input.context.providers.googleGtag.data.ga\nif value == nil then \n return input.anonymousId\nelse\n local arr = {}\n local ga = SPLIT(value, \".\", 4)\n arr[1] = ga[3]\n arr[2] = ga[4]\n return JOIN(arr, \".\")\nend",
|
|
16
|
+
"lang": "lua"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"inputKey": "input",
|
|
23
|
+
"outputKey": "timestamp_micros",
|
|
24
|
+
"transforms": [
|
|
25
|
+
{
|
|
26
|
+
"expression": {
|
|
27
|
+
"body": "return TO_STRING(MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)\n* 1000)",
|
|
28
|
+
"lang": "lua"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"eventSpecific": {
|
|
36
|
+
"page": {
|
|
37
|
+
"mappings": [
|
|
38
|
+
{
|
|
39
|
+
"inputKey": "input",
|
|
40
|
+
"outputKey": "events",
|
|
41
|
+
"transforms": [
|
|
42
|
+
{
|
|
43
|
+
"expression": {
|
|
44
|
+
"body": "local event_details = {}\nevent_details.name = 'page_view'\nlocal params = {}\nparams.page_title = input.properties.title\nparams.page_location = SPLIT(input.properties.url, \"?\", 1)[1] or \"\"\nparams.page_referrer = SPLIT(input.properties.referrer, \"?\", 1)[1] or \"\"\nparams.page_type = input.properties.pageType\nparams.page_sub_category = input.properties.subCategory2\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
45
|
+
"lang": "lua"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"products_searched": {
|
|
53
|
+
"mappings": [
|
|
54
|
+
{
|
|
55
|
+
"inputKey": "input",
|
|
56
|
+
"outputKey": "events",
|
|
57
|
+
"transforms": [
|
|
58
|
+
{
|
|
59
|
+
"expression": {
|
|
60
|
+
"body": "local event_details = {}\nevent_details.name = 'search'\nlocal params = {}\nparams.search_term = input.properties.query\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
61
|
+
"lang": "lua"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"product_list_viewed": {
|
|
69
|
+
"mappings": [
|
|
70
|
+
{
|
|
71
|
+
"inputKey": "input",
|
|
72
|
+
"outputKey": "events",
|
|
73
|
+
"transforms": [
|
|
74
|
+
{
|
|
75
|
+
"expression": {
|
|
76
|
+
"body": "local event_details = {}\nevent_details.name = 'view_item_list'\nlocal params = {}\nparams.item_list_id = input.properties.list_id\nparams.item_list_name = input.properties.category\nparams.items = input.properties.products\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
77
|
+
"lang": "lua"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"promotion_viewed": {
|
|
85
|
+
"mappings": [
|
|
86
|
+
{
|
|
87
|
+
"inputKey": "input",
|
|
88
|
+
"outputKey": "events",
|
|
89
|
+
"transforms": [
|
|
90
|
+
{
|
|
91
|
+
"expression": {
|
|
92
|
+
"body": "local event_details = {}\nevent_details.name = 'view_promotion'\nlocal params = {}\nparams.promotion_id = input.properties.promotion_id\nparams.creative_name = input.properties.creative\nparams.promotion_name = input.properties.name\nparams.creative_slot = input.properties.position\nparams.items = input.properties.items\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
93
|
+
"lang": "lua"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"promotion_clicked": {
|
|
101
|
+
"mappings": [
|
|
102
|
+
{
|
|
103
|
+
"inputKey": "input",
|
|
104
|
+
"outputKey": "events",
|
|
105
|
+
"transforms": [
|
|
106
|
+
{
|
|
107
|
+
"expression": {
|
|
108
|
+
"body": "local event_details = {}\nevent_details.name = 'select_promotion'\nlocal params = {}\nparams.promotion_id = input.properties.promotion_id\nparams.creative_name = input.properties.creative\nparams.promotion_name = input.properties.name\nparams.creative_slot = input.properties.position\nparams.items = input.properties.items\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
109
|
+
"lang": "lua"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"product_clicked": {
|
|
117
|
+
"mappings": [
|
|
118
|
+
{
|
|
119
|
+
"inputKey": "input",
|
|
120
|
+
"outputKey": "events",
|
|
121
|
+
"transforms": [
|
|
122
|
+
{
|
|
123
|
+
"expression": {
|
|
124
|
+
"body": "local event_details = {}\nevent_details.name = 'select_item'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
125
|
+
"lang": "lua"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"product_viewed": {
|
|
133
|
+
"mappings": [
|
|
134
|
+
{
|
|
135
|
+
"inputKey": "input",
|
|
136
|
+
"outputKey": "events",
|
|
137
|
+
"transforms": [
|
|
138
|
+
{
|
|
139
|
+
"expression": {
|
|
140
|
+
"body": "local event_details = {}\nevent_details.name = 'view_item'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
141
|
+
"lang": "lua"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"product_added": {
|
|
149
|
+
"mappings": [
|
|
150
|
+
{
|
|
151
|
+
"inputKey": "input",
|
|
152
|
+
"outputKey": "events",
|
|
153
|
+
"transforms": [
|
|
154
|
+
{
|
|
155
|
+
"expression": {
|
|
156
|
+
"body": "local event_details = {}\nevent_details.name = 'add_to_cart'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
157
|
+
"lang": "lua"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"product_removed": {
|
|
165
|
+
"mappings": [
|
|
166
|
+
{
|
|
167
|
+
"inputKey": "input",
|
|
168
|
+
"outputKey": "events",
|
|
169
|
+
"transforms": [
|
|
170
|
+
{
|
|
171
|
+
"expression": {
|
|
172
|
+
"body": "local event_details = {}\nevent_details.name = 'remove_from_cart'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
173
|
+
"lang": "lua"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"cart_viewed": {
|
|
181
|
+
"mappings": [
|
|
182
|
+
{
|
|
183
|
+
"inputKey": "input",
|
|
184
|
+
"outputKey": "events",
|
|
185
|
+
"transforms": [
|
|
186
|
+
{
|
|
187
|
+
"expression": {
|
|
188
|
+
"body": "local event_details = {}\nevent_details.name = 'view_cart'\nlocal params = {}\nparams.currency = input.properties.currency\nparams.value = 0\nparams.items = {}\nfor inputIndex, product in pairs(input.properties.products) do\n local item = {}\n item.item_id = product.product_id\n item.item_name = product.name\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_price = product.price\n item.item_quantity = product.quantity\n params.items[inputIndex] = item\n params.value = params.value + (product.price * product.quantity)\nend\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
189
|
+
"lang": "lua"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"order_completed": {
|
|
197
|
+
"mappings": [
|
|
198
|
+
{
|
|
199
|
+
"inputKey": "input",
|
|
200
|
+
"outputKey": "events",
|
|
201
|
+
"transforms": [
|
|
202
|
+
{
|
|
203
|
+
"expression": {
|
|
204
|
+
"body": "local event_details = {}\nevent_details.name = 'purchase'\nlocal params = {}\nparams.currency = input.properties.currency\nparams.transaction_id = input.properties.checkout_id\nparams.value = input.properties.total\nparams.coupon = input.properties.coupon\nparams.shipping = input.properties.shipping\nparams.tax = input.properties.tax\nparams.items = {}\nfor inputIndex, product in pairs(input.properties.products) do\n local item = {}\n item.item_id = product.product_id\n item.item_name = product.name\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_price = product.price\n item.item_quantity = product.quantity\n params.items[inputIndex] = item\nend\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
205
|
+
"lang": "lua"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"default": {
|
|
214
|
+
"mappings": [
|
|
215
|
+
{
|
|
216
|
+
"inputKey": "input",
|
|
217
|
+
"outputKey": "events",
|
|
218
|
+
"transforms": [
|
|
219
|
+
{
|
|
220
|
+
"expression": {
|
|
221
|
+
"body": "local event_details = {}\nevent_details.name = input.event\nlocal params = input.properties\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
|
|
222
|
+
"lang": "lua"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"4a403d37d082fdcabaf3cccd48203c70"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"4da0f3e5220f6c90e72061a32408a758"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"e65a3facc63d436efa068c81da8ab5a2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"bd776be05a483898c2e44b12853c3c77"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"40a0a69ef5218e079a6e327b75853ae3"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"6e69f4bc6d4d7f1dde1c2418462d7094"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"65d5f96f419b0892b7130032d08e086f"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"55ef00289b5527f13d9a8cac3b66769d"
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"12b66faf64de6018de1fcc852fc34cb8"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"793c178fc25620bb5c62d34d5441fe58"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"493c384f4a00509af725ac870e13d84e"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"301e7dca8012bb65edcf9b34c91759b8"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"c687ad311e3860405c6f6ee7243746fb"
|
|
File without changes
|
|
File without changes
|