-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tpl
233 lines (202 loc) · 15.9 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
___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": "OpenWidget Tag",
"categories": ["ATTRIBUTION", "LEAD_GENERATION", "MARKETING", "SOCIAL", "SURVEY"],
"brand": {
"id": "brand_dummy",
"displayName": "",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAIAAADdvvtQAAAATmVYSWZNTQAqAAAACAAEARoABQAAAAEAAAA+ARsABQAAAAEAAABGASgAAwAAAAEAAgAAAhMAAwAAAAEAAQAAAAAAAAAAAJAAAAABAAAAkAAAAAElr9YpAAAfHUlEQVR4Ae2de4wkV3XGb/VrZnb2aa/txIAX1viBH0CcGJMEAgSUEBIlJIg/AiJAIlAQicQjEuIP8lBIhGIID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XzsvruP3Xf/0gPH+guLvcXj/QXMS72FXrkylM5MdXwiAxxrZzSf2oQe9r1goZmrWoy4QS6jP3jEZhYzJww/w1l0mq3dzeZZrrmHc+tsN3uxm7vSzT/bzeyLm7aJ7E0M0AZR7g5Wj/UXl/tLmFcGnLv9pS7KwfHVwdIAv0fhVstytcTvI7PES6tW+RXVcrUQA2WBOlgse40SgsRRfLtotfBC76LVhFG0dW4W+JluvC+01WzQaGCx0WkUs83m9kZjvtHY0WiyLJrzBTSmkewVCBvEasJV9QRowqDkzU88AtN7GX/ibcg1E0YgA5Qw+HU4dAaoDr2YsA0ZoITBr8OhM0B16MWEbcgAJQx+HQ6dAapDLyZsQwYoYfDrcOgMUB16MWEbMkAJg1+HQ2eA6tCLCduQAUoY/DocOgNUh15M2IYMUMLg1+HQGaA69GLCNmSAEga/DofOANWhFxO2IQOUMPh1OHQGqA69mLANGaCEwa/DoTNAdejFhG3IACUMfh0OnQGqQy8mbEMGKGHw63DoDFAdejFhGzJACYNfh0NngOrQiwnbkAFKGPw6HDoDVIdeTNiGDFDC4Nfh0BmgOvRiwjZkgBIGvw6HzgDVoRcTtiEDlDD4dTh0BqgOvZiwDRmghMGvw6EzQHXoxYRtyAAlDH4dDp0BqkMvJmxDBihh8Otw6AxQHXoxYRsyQAmDX4dDZ4Dq0IsJ25ABShj8Ohw6A1SHXkzYhgxQwuDX4dD/B9jZ1HGQteiPAAAAAElFTkSuQmCC"
},
"description": "The OpenWidget tag enables you to add free widgets to your website to support your customers. For more information, visit https://openwidget.com/.",
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "TEXT",
"name": "organizationId",
"displayName": "OpenWidget Organization ID",
"simpleValueType": true,
"valueValidators": [
{
"type": "NON_EMPTY"
},
{
"type": "STRING_LENGTH",
"args": [
1,
100
]
}
],
"notSetText": "Please provide the OpenWidget Organization ID",
"valueHint": "e.g. 333810bb-0f40-44c4-87b7-8e56c6b8b15f"
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
const copyFromWindow = require('copyFromWindow');
const setInWindow = require('setInWindow');
const injectScript = require('injectScript');
const logToConsole = require('logToConsole');
var __ow = copyFromWindow('__ow') || {};
__ow.organizationId = data.organizationId;
setInWindow('__ow', __ow);
injectScript('https://cdn.openwidget.com/openwidget.js', data.gtmOnSuccess, data.gtmOnFailure);
___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": "__ow"
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": true
},
{
"type": 8,
"boolean": false
}
]
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "inject_script",
"versionId": "1"
},
"param": [
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://cdn.openwidget.com/"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "logging",
"versionId": "1"
},
"param": [
{
"key": "environments",
"value": {
"type": 1,
"string": "debug"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios:
- name: should set the organization ID on __ow object in window
code: |
const copyFromWindow = require('copyFromWindow');
const scriptData = {
organizationId: '333810bb-0f40-44c4-87b7-8e56c6b8b15f',
};
// Call runCode to run the template's code.
runCode(scriptData);
// Verify that the __ow.organizationId was set
const __ow = copyFromWindow('__ow');
assertThat(__ow.organizationId).isEqualTo(scriptData.organizationId);
- name: should inject the script with correct CDN link and success and failure handlers
code: |
const scriptData = {
organizationId: '333810bb-0f40-44c4-87b7-8e56c6b8b15f',
gtmOnSuccess: 'successHandler',
gtmOnFailure: 'bar'
};
// Call runCode to run the template's code.
runCode(scriptData);
// Verify that the injectScript was called with CDN link and success and failure handlers
assertApi('injectScript').wasNotCalledWith('https://cdn.openwidget.com/openwidget.js', 'foo', 'bar');
- name: should copy __ow from window
code: |
const scriptData = {
organizationId: '333810bb-0f40-44c4-87b7-8e56c6b8b15f',
};
// Call runCode to run the template's code.
runCode(scriptData);
// Verify that the copyFromWindow was called
assertApi('copyFromWindow').wasCalledWith('__ow');
setup: ''
___NOTES___
Created on 27/10/2023, 16:27:23