-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tpl
279 lines (249 loc) · 18.4 KB
/
template.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
// Copyright 2019 WonderPush SAS
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// https://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
___TERMS_OF_SERVICE___
By creating or modifying this file you agree to Google Tag Manager's Community
Template Gallery Developer Terms of Service available at
https://developers.google.com/tag-manager/gallery-tos (or such other URL as
Google may provide), as modified from time to time.
___INFO___
{
"type": "TAG",
"id": "cvt_temp_public_id",
"version": 1,
"securityGroups": [],
"displayName": "WonderPush - Manage tags and properties",
"brand": {
"id": "brand_dummy",
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Y+NPP2NxL9rXOjoUcIoMNewRNgaiLT/z72kFJAmudJwjmwOM/Icb0YIR3ioPo/wSZAKExdf4nM9srSIulPeiJPgru5NeNxYBjTOzPOSAig6SHQnshISgO3FPoVnhiSQ+PAJjKSR5ifpf8swOY/8ATIUEoDI0vKfnonTAyHqdwjrTwCyV7M+X70lRAgndOMXtDWrnult8tj8qCmqN7grqJ6qRSl/4Oa/BEC/HKvDO06Oq7R6mZi28MbQ1Svcdeav/5ui6UshQDeDIVNKY2dc+fPh+FZr/dmhORFSa11lxxXrM7HshdCAFYonEclNDvlztGZfu/BKjEzx4W7/IuYGqfRn9Go/PhCACNk3Gl03OxbD8uDmjmud0tf+Fc0+G05CIPfhAAZRwJIgPVf1RJjfOzk2GdrkZMLb99AW/zzf778zqjojsjPLgT4GTQ6bpyyPZ9ibZXyJJ5Ok5uiep8NkcYzbWY6IIPfhACZY+vzUBg3CgaRnk4U0hDp57/ogaZ5FkFsfRQCZBAKP+ul7fJhozQ+9P5GMYZIN/708R8MDQSz9VEIkHarGKPjPpSRDfbT/YAPNgoNkf5kaAo+YJAGvwkBWA5DHo0GMdMmWg0+yZLY79e386EYE/c8DmbroxAgs5BxdoZc//k5X00IjBgzIc12/sWAtj7uBEkF/IoDrTEYf0mzb/P2+Oehlhbhr3+meTDi/X92QG798Q/yFvyPLYqHBeICZbZZ/FckEwKp/BEXKOPN4ktjKZkfOQEEAiGAQCAEEAiEAAKBEEAgBBAIhAACgRBAIBACCARCAIFACCAQCAEEAiGAQCAEEAiEAAKBEEAgEAIIBEIAgUAIIBAIAQQCIYBAIAQQCIQAAoEQQCAQAggEQgCBQAggEAgBBAIhgEAgBBAIhAACgRBAIBACCARCAIFACCAQCAEEAiGAQCAEEAiEAAKBEEAgEAIIBEIAgcAK/L8AAwCeOXzO14mdHgAAAABJRU5ErkJggg\u003d\u003d"
},
"description": "Manipulate tags and properties inside WonderPush, in order to target push notifications based on user profile.\nRequires the \"WonderPush - Integrate Web Push Notifications\" template.",
"categories": ["MARKETING", "REMARKETING", "SALES"],
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "PARAM_TABLE",
"name": "tags",
"displayName": "Tags",
"paramTableColumns": [
{
"param": {
"type": "SELECT",
"name": "action",
"displayName": "Action",
"macrosInSelect": false,
"selectItems": [
{
"value": "add",
"displayValue": "Add"
},
{
"value": "remove",
"displayValue": "Remove"
}
],
"simpleValueType": true
},
"isUnique": false
},
{
"param": {
"type": "TEXT",
"name": "tag",
"displayName": "Tag",
"simpleValueType": true
},
"isUnique": false
}
],
"help": "See https://docs.wonderpush.com/docs/tags for more information."
},
{
"type": "PARAM_TABLE",
"name": "properties",
"displayName": "Properties",
"paramTableColumns": [
{
"param": {
"type": "TEXT",
"name": "property",
"displayName": "Property",
"simpleValueType": true,
"help": "You must use the appropriate type prefix\nSee https://docs.wonderpush.com/docs/properties#section-property-names for more information."
},
"isUnique": false
},
{
"param": {
"type": "SELECT",
"name": "action",
"displayName": "Action",
"macrosInSelect": false,
"selectItems": [
{
"value": "set",
"displayValue": "Set"
},
{
"value": "unset",
"displayValue": "Unset"
},
{
"value": "add",
"displayValue": "Add"
},
{
"value": "remove",
"displayValue": "Remove"
}
],
"simpleValueType": true,
"help": "\"Set\" assigns the value to the property.\n\"Unset\" removes any value to the property.\n\"Add\" adds the value to the list of values of the property.\n\"Remove\" removes the value from the list of values of the property.\nSee https://docs.wonderpush.com/docs/properties for more information."
},
"isUnique": false
},
{
"param": {
"type": "TEXT",
"name": "value",
"displayName": "Value",
"simpleValueType": true
},
"isUnique": false
}
],
"help": "See https://docs.wonderpush.com/docs/properties for more information."
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
const createQueue = require('createQueue');
const makeInteger = require('makeInteger');
const makeNumber = require('makeNumber');
const WonderPush_push = createQueue('WonderPush');
const tags = data.tags || [];
const properties = data.properties || [];
tags.forEach(item => {
let action;
if (item.action === 'add') {
action = 'addTag';
} else if (item.action === 'remove') {
action = 'removeTag';
}
if (action) WonderPush_push([action, item.tag]);
});
properties.forEach(item => {
let action;
if (item.action === 'add') {
action = 'addProperty';
} else if (item.action === 'remove') {
action = 'removeProperty';
} else if (item.action === 'set') {
action = 'setProperty';
} else if (item.action === 'unset') {
action = 'unsetProperty';
}
const underscorePos = item.property.indexOf('_');
const prefix = item.property.substring(0, underscorePos);
switch (prefix) {
case 'byte':
case 'short':
case 'int':
case 'long':
item.value = makeInteger(item.value);
break;
case 'float':
case 'double':
item.value = makeNumber(item.value);
break;
case 'bool':
item.value = item.value.trim().toLocaleLowerCase() === 'true';
break;
case 'date':
if (item.value.match('^[0-9]{1,13}$') != null) {
item.value = makeInteger(item.value);
}
break;
}
if (action) WonderPush_push([action, item.property, item.value]);
});
data.gtmOnSuccess();
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "access_globals",
"versionId": "1"
},
"param": [
{
"key": "keys",
"value": {
"type": 2,
"listItem": [
{
"type": 3,
"mapKey": [
{
"type": 1,
"string": "key"
},
{
"type": 1,
"string": "read"
},
{
"type": 1,
"string": "write"
},
{
"type": 1,
"string": "execute"
}
],
"mapValue": [
{
"type": 1,
"string": "WonderPush"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios: []
___NOTES___
Created on 12/10/2019, 9:17:59 AM