-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tpl
152 lines (120 loc) · 18.1 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
___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": "Salesfire GTM Template",
"categories": ["ANALYTICS", "CONVERSIONS"],
"brand": {
"id": "brand_dummy",
"displayName": "",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwQAAADTCAYAAAA/KNToAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nO2d+3EUudeGu7/a/80vAkwENhFgIsAbASaC9UaAiQATASYCTATYEawdAZ4I1o6gvxL7NjTGl57RUetIep6qKahadqav0nnPtR+GoQMAAAAAgDb5P+47AAAAAEC7IAgAAAAAABoGQQAAAAAA0DAIAgAAAACAhkEQAAAAAAA0DIIAAAAAAKBhEAQAAAAAAA2DIAAAAAAAaBgEAQAAAABAwyAIAAAAAAAaBkEAAAAAANAwCAIAAAAAgIZBEAAAAAAANAyCAAAAAACgYRAEAAAAAAANgyAAAAAAAGgYBAEAAAAAQMMgCAAAAAAAGgZBAAAAAADQMAgCAAAAAICGQRAAAAAAADQMggAAAAAAoGEQBAAAAAAADYMgA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3qmevypQDZ9e7kyA81TrrRvj3fX8duR+ZrRcpMViL3skbbUbf9yHF8H3k9/2PiPKvaM8M+/rrhX/a5TvuCQTBHeiBHT+7CwqEG3k6gtF0VnIqkCUTcbCXWLCtJgsG175RZKxO14AlBOn5RPg3lXec6XpP19rmrjlAbhZyxF5O7ClEwCMgCGYgg3RXn+3JZ9P8wjFsFjahaz2wV4St5qEWdeO9CAvJkw2MiJXyO8/GP7n+cBfauKbP3O6Gz1w3effH5+4CY/R35JQZr/Om73g3ec/Hz4WuOe86gCMm7/y4zq4zl2IU+FeTff2C6Mx6IAgMmBgM93HNpr8Mj9wL7gOYM+P9Z2MyhOsN0A5yyN5ZXE8k3xYEAQAAAABAwzTXZQgAAAAAAH6CIAAAAAAAaBgEAQAAAABAwyAIAAAAAAAaBkEAAAAAANAwCAIAAAAAgIZBEAAAAAAANAyCAAAAAACgYRAEAAAAAAANgyAAAAAAAGgYBAEAAAAAQMMgCAAAAAAAGgZBAAAAAADQMAgCAAAAAICGQRAAAAAAADQMggAAAAAAoGEQBAAAAAAADYMgAAAAAABoGAQBAAAAAEDDIAgAAAAAABoGQQAAAAAA0DAIAgAAAACAhkEQAAAAAAA0DIIAAAAAAKBhEAQAAAAAAA2DIAAAAAAAaBgEAQAAAABAwyAIAAAAAAAaBkEAAAAAANAwCAIAAAAAgIZBEAAAAAAANAyCAAAAAACgYRAEAAAAAAANgyAAAAAAAGgYBAEAAAAAQKt0Xff/m89ps0mw+LAAAAAASUVORK5CYII\u003d"
},
"description": "This GTM template, provides an easy installation of Salesfire onto client\u0027s websites via Google Tag Manager.",
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "TEXT",
"name": "salesfire_site_uuid",
"displayName": "Salesfire Site ID",
"simpleValueType": true
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
const log = require('logToConsole');
const encodeUriComponent = require('encodeUriComponent');
const injectScript = require('injectScript');
const onSuccess = function() {
log('Salesfire: Core script loaded successfully.');
data.gtmOnSuccess();
};
const onFailure = function() {
log('Salesfire: Core script load failed.');
data.gtmOnFailure();
};
var site_uuid = (data.salesfire_site_uuid) ? data.salesfire_site_uuid : "";
const gtmCoreWrapperUrl = "https://cdn.salesfire.co.uk/code/" + encodeUriComponent(site_uuid) + ".js";
injectScript(gtmCoreWrapperUrl, onSuccess, onFailure);
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "logging",
"versionId": "1"
},
"param": [
{
"key": "environments",
"value": {
"type": 1,
"string": "debug"
}
}
]
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "inject_script",
"versionId": "1"
},
"param": [
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://cdn.salesfire.co.uk/code/*.js"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios:
- name: injectScriptWasSuccessfulWhenCalledWithSiteID
code: |-
const mockData = {
salesfire_site_uuid: '9q62356y-55q9-99t8-5wer-f7844ft02415',
};
mock('injectScript', (url, onSuccess, onFailure) => {
onSuccess();
});
// Call runCode to run the template's code.
runCode(mockData);
// Verify that the tag finished successfully.
assertApi('injectScript').wasCalled();
- name: injectScriptFailedWhenCalledWithoutSiteID
code: |-
const mockData = {};
mock('injectScript', (url, onSuccess, onFailure) => {
onFailure();
});
// Call runCode to run the template's code.
runCode(mockData);
// Verify that the tag finished successfully.
assertApi('injectScript').wasCalled();
___NOTES___
Created on 03/08/2021, 16:49:49