This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.tpl
125 lines (105 loc) · 6.23 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
___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___
{
"displayName": "Lentainform Pixel",
"description": "Use the Lentainform Pixel for create your news.",
"categories": ["AUTOCREATIVE SCRIPT"],
"securityGroups": [],
"id": "cvt_temp_public_id",
"type": "TAG",
"version": 1,
"brand": {
"thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAABfGlDQ1BpY2MAACiRfZE9SMNAHMVf04oilQ52EHHIUF20ICriqFUoQoVQK7TqYHLpFzRpSFJcHAXXgoMfi1UHF2ddHVwFQfADxMnRSdFFSvxfUmgR48FxP97de9y9A4RGhWlWaBzQdNtMJxNiNrcqdr9CQAgRjEKQmWXMSVIKvuPrHgG+3sV5lv+5P0efmrcYEBCJZ5lh2sQbxNObtsF5nzjKSrJKfE48ZtIFiR+5rnj8xrnossAzo2YmPU8cJRaLHax0MCuZGvEUcUzVdMoXsh6rnLc4a5Uaa92TvzCc11eWuU5zCEksYgkSRCiooYwKbMRp1UmxkKb9hI9/0PVL5FLIVQYjxwKq0CC7fvA/+N2tVZic8JLCCaDrxXE+hoHuXaBZd5zvY8dpngDBZ+BKb/ur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b2RpZnkAMjAyMC0wMi0xMlQxNTo1NjozMyswMDowMEp9pYEAAAAbdEVYdGljYzpjb3B5cmlnaHQAUHVibGljIERvbWFpbraRMVsAAAAidEVYdGljYzpkZXNjcmlwdGlvbgBHSU1QIGJ1aWx0LWluIHNSR0JMZ0ETAAAAFXRFWHRpY2M6bWFudWZhY3R1cmVyAEdJTVBMnpDKAAAADnRFWHRpY2M6bW9kZWwAc1JHQltgSUMAAAAASUVORK5CYII=",
"displayName": "Lentainform",
"id": "brand_dummy"
},
"containerContexts": [
"WEB"
]
}
___TEMPLATE_PARAMETERS___
[
{
"valueValidators": [
{
"type": "NON_EMPTY"
},
{
"type": "POSITIVE_NUMBER"
}
],
"displayName": "Lentainform Campaign ID",
"simpleValueType": true,
"name": "campaignID",
"type": "TEXT"
}
]
___SANDBOXED_JS_FOR_WEB_TEMPLATE___
// Require APIs
const sendPixel = require('sendPixel');
const encodeUriComponent = require('encodeUriComponent');
const getReferrerUrl = require('getReferrerUrl');
sendPixel('https://autocounter.lentainform.com/1x1.gif?pid=' + data.campaignID + '&referer=' + encodeUriComponent(getReferrerUrl()), data.gtmOnSuccess, data.gtmOnFailure);
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "get_referrer",
"versionId": "1"
},
"param": [
{
"key": "urlParts",
"value": {
"type": 1,
"string": "any"
}
},
{
"key": "queriesAllowed",
"value": {
"type": 1,
"string": "any"
}
}
]
},
"isRequired": true
},
{
"instance": {
"key": {
"publicId": "send_pixel",
"versionId": "1"
},
"param": [
{
"key": "urls",
"value": {
"type": 2,
"listItem": [
{
"type": 1,
"string": "https://autocounter.lentainform.com/"
}
]
}
}
]
},
"clientAnnotations": {
"isEditedByUser": true
},
"isRequired": true
}
]
___TESTS___
scenarios: []
setup: ''
___NOTES___
Created on 18.02.2020, 18:42:49