-
Notifications
You must be signed in to change notification settings - Fork 0
/
eskalad.tpl
192 lines (169 loc) · 11.3 KB
/
eskalad.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
___INFO___
{
"type": "TAG",
"id": "cvt_temp_public_id",
"version": 1,
"securityGroups": [],
"displayName": "Raccourci",
"brand": {
"id": "brand_dummy",
"displayName": "",
"thumbnail": "data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAC9ALQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJyt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
},
"description": "",
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "TEXT",
"name": "event",
"displayName": "Evenement",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "eventCategory",
"displayName": "Catégorie",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "eventAction",
"displayName": "Action",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "eventLabel",
"displayName": "Label",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "sheet",
"displayName": "Fiche",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "playlist",
"displayName": "Playlist",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "page",
"displayName": "Page",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "referrer",
"displayName": "Referrer",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "siteKey",
"displayName": "Clé du site",
"simpleValueType": true
},
{
"type": "TEXT",
"name": "accessKey",
"displayName": "Clé API",
"simpleValueType": true
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
// Saisissez le code de votre modèle ici.
const log = require('logToConsole');
const makeString = require('makeString');
const toBase64 = require('toBase64');
const sendPixel = require('sendPixel');
function isNull(variable) {
return variable == null || variable == undefined || variable == "";
}
function toJSON(map) {
let result = '{';
for(const key in map) {
const value = map[key];
if(typeof value == 'function') {
continue;
}
result += '"' + key + '": ';
if(isNull(value)) {
result += 'null';
} else if(typeof value == 'object') {
result += toJSON(value);
} else if(typeof value == 'number') {
result += value;
} else {
result += '"' + value + '"';
}
result += ', ';
}
return result.slice(0, -2) + '}';
}
const url = 'https://api.tourism-system.com/v2/kpi/stats/google-tag-manager?data=' + toBase64(toJSON(data)) + '&key=' + data.accessKey;
sendPixel(url);
// Appelez data.gtmOnSuccess une fois la balise terminée.
data.gtmOnSuccess();
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "logging",
"versionId": "1"
},
"param": [
{
"key": "environments",
"value": {
"type": 1,
"string": "debug"
}
}
]
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "send_pixel",
"versionId": "1"
},
"param": [
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://api.tourism-system.com/v2/kpi/stats/*"
},
{
"type": 1,
"string": "https://api.tourism-system.rc-preprod.com/v2/kpi/stats/*"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios: []
___NOTES___
Created on 10/04/2020 à 15:15:39