This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
template.tpl
332 lines (297 loc) · 25 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
___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": "Piwik PRO server-side",
"categories": ["ANALYTICS"],
"brand": {
"id": "github.com_PiwikPRO",
"displayName": "Piwik PRO",
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACA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AFiIAAACwEAEAAICFCAAAACxEAAAAYCECAAAACxEAAABYiAAAAMBCBAAAABYiAAAAsBABAACAhQgAAAAs5EpKmR4BAAB6VSosaaWkpOklAACg13T9H++0soqHDWl9AAAAAElFTkSuQmCC"
},
"description": "Privacy-friendly customer journey analytics. Our server-side tag template lets you send Analytics events to Piwik PRO HTTP API. Works best with the Universal Analytics client.",
"containerContexts": [
"SERVER"
]
}
___TEMPLATE_PARAMETERS___
[
{
"type": "TEXT",
"name": "accountURL",
"displayName": "Account address",
"simpleValueType": true,
"help": "Your account address in Piwik PRO.",
"valueValidators": [
{
"type": "NON_EMPTY"
},
{
"type": "REGEX",
"args": [
"^https://.*"
],
"errorMessage": "The address must start with \"https://\""
},
{
"type": "REGEX",
"args": [
".*\\/$"
],
"errorMessage": "The address must end with a \"/\""
}
]
},
{
"type": "TEXT",
"name": "siteID",
"displayName": "Site or app ID",
"simpleValueType": true,
"help": "The unique ID for your site or app in Piwik PRO."
},
{
"type": "GROUP",
"name": "dataCollection",
"displayName": "Data collection",
"groupStyle": "ZIPPY_CLOSED",
"subParams": [
{
"type": "CHECKBOX",
"name": "useDefaultEndpoint",
"checkboxText": "Use default tracking paths",
"simpleValueType": true,
"help": "By default, all tracking requests will be sent to the default \"ppms.js\" endpoint. Turn this option off to set your own path.",
"defaultValue": true
},
{
"type": "TEXT",
"name": "customEndpoint",
"displayName": "Custom tracking path",
"simpleValueType": true,
"enablingConditions": [
{
"paramName": "useDefaultEndpoint",
"paramValue": false,
"type": "EQUALS"
}
],
"help": "Set your own custom tracking endpoint for all tracking requests."
},
{
"type": "CHECKBOX",
"name": "anonymousTracking",
"checkboxText": "Anonymize data",
"simpleValueType": true,
"help": "If enabled, you won\u0027t collect personal data like the user\u0027s IP address."
},
{
"type": "CHECKBOX",
"name": "sendCustomDimensions",
"checkboxText": "Send custom dimensions",
"simpleValueType": true,
"help": "When enabled, you will send custom dimensions with your requests to Piwik PRO Analytics"
},
{
"type": "PARAM_TABLE",
"name": "customDimensionMappings",
"displayName": "Custom dimension mapping",
"paramTableColumns": [
{
"param": {
"type": "TEXT",
"name": "gaDimensionID",
"displayName": "Source Custom Dimension ID",
"simpleValueType": true
},
"isUnique": false
},
{
"param": {
"type": "TEXT",
"name": "ppDimensionID",
"displayName": "Piwik PRO Analytics Custom Dimension ID",
"simpleValueType": true
},
"isUnique": true
}
],
"enablingConditions": [
{
"paramName": "sendCustomDimensions",
"paramValue": true,
"type": "EQUALS"
}
],
"newRowButtonText": "Add a custom dimension",
"help": "Specify which custom dimensions you would like to send to Piwik PRO Analytics. Provide their IDs. You can map the same ID to multiple Piwik PRO Analytics custom dimensions.",
"newRowTitle": "Add a custom dimension"
}
]
}
]
___SANDBOXED_JS_FOR_SERVER___
// Import necessary server-side tagging APIs
const getClientName = require('getClientName');
const getAllEventData = require('getAllEventData');
const sendHttpGet = require('sendHttpGet');
const encodeUri = require('encodeUri');
const logToConsole = require('logToConsole');
// Get the name of the tagging client used
const clientName = getClientName();
// Read event data
const eventData = getAllEventData();
// Parse custom dimensions from the dimension event object
// Builds a string with new params for the Piwik PRO tracking request
const parseCustomDimensions = (eventData, dimensionMappings) => {
const gaDimensions = eventData.dimension;
let dimensionParams = [];
// Adds custom dimensions based on the mappings
dimensionMappings.forEach((mapping) => {
// Only sends the dimensions from the mapping that are available in the event
if (typeof gaDimensions[mapping.gaDimensionID] !== "undefined") {
dimensionParams.push('&dimension' +
mapping.ppDimensionID +
'=' +
gaDimensions[mapping.gaDimensionID]);
} else {
logToConsole(
'Custom dimension (ID: ' + mapping.gaDimensionID + ') was not sent with the event.'
);
}
});
return dimensionParams.join('');
};
// Build an analytics request for different event types
const buildRequest = (eventData) => {
const eventType = eventData.event_name;
// It's possible to customise the tracking endpoint. The default option is ppms.php
const requestEndpoint = data.useDefaultEndpoint ? 'ppms.php' : data.customEndpoint;
// Add common tracking request parameters (that won't change regardless of the event type)
let requestPath = requestEndpoint + '?' +
'rec=1' + '&' +
'idsite=' + data.siteID + '&' +
'url=' + eventData.page_location + '&' +
'cip=' + eventData.ip_override + '&' +
'ua=' + eventData.user_agent + '&' +
'res=' + eventData.screen_resolution;
if (data.anonymousTracking == true) {
requestPath += '&uia=1';
}
if (data.sendCustomDimensions == true) {
const dimensionParams = parseCustomDimensions(eventData, data.customDimensionMappings);
requestPath += dimensionParams;
}
// Add additional parameters specific to particular event types
switch (eventType) {
case 'page_view':
return requestPath + '&' +
'action_name=' + eventData.page_title;
// Custom events the same event type as the event action parameter
case eventData.event_action:
return requestPath + '&' +
'e_c=' + eventData.event_category + '&' +
'e_a=' + eventData.event_action + '&' +
'e_n=' + eventData.event_label;
}
};
// Process event data and build a request path
const requestPath = buildRequest(eventData);
// Build the full URL for sending the request
const url = data.accountURL + encodeUri(requestPath);
// The sendHttpGet API takes a URL and a result callback. You must call
// data.gtmOnSuccess() or data.gtmOnFailure() so that the container knows when
// the tag has finished executing.
sendHttpGet(url, (statusCode) => {
if (statusCode >= 200 && statusCode < 300) {
data.gtmOnSuccess();
} else {
data.gtmOnFailure();
}
});
___SERVER_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "read_event_data",
"versionId": "1"
},
"param": [
{
"key": "eventDataAccess",
"value": {
"type": 1,
"string": "any"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "send_http",
"versionId": "1"
},
"param": [
{
"key": "allowedUrls",
"value": {
"type": 1,
"string": "any"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "read_container_data",
"versionId": "1"
},
"param": []
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "logging",
"versionId": "1"
},
"param": [
{
"key": "environments",
"value": {
"type": 1,
"string": "debug"
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios: []
___NOTES___
Created on 20/06/2022, 13:15:48