-
Notifications
You must be signed in to change notification settings - Fork 2
/
popup.html
286 lines (254 loc) · 9.46 KB
/
popup.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GTM Fixer</title>
<style>
/* Styles the links */
a {
text-decoration: none;
color: white;
cursor: pointer;
margin: -20px;
}
/* Styles the links when they're hovered over*/
a:hover {
color: #f27901;
}
body {
/* includes backup fonts in case Gill Sans isn't available */
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
margin: 0;
color: #333;
background-color: #f7f7f7;
min-width: 300px;
max-width: 100%;
}
.banner {
background-color: #312896;
color: white;
padding: 5px 20px;
text-align: left;
display: flex;
align-items: center;
}
/* logo image */
.banner img {
height: 40px;
}
.banner-text {
font-size: 24px;
margin-left: 5px;
}
.button {
padding: 10px 20px;
background-color: #f27901;
color: white;
border: none;
border-radius: 20px;
font-weight: bold;
text-align: center;
margin: auto;
opacity: 30%;
pointer-events: none;
margin-top: 30px;
}
.button:hover {
background-color: #f27901;
}
/* Fixer Functions - customization settings */
.checkbox-group {
vertical-align: middle;
margin-bottom:-10px;
}
.checkbox-group input {
margin-right: 7px;
vertical-align: middle;
margin-top: -1px;
}
.container {
background: #fff;
border: 1px solid #ddd;
padding: 20px;
}
/* Fixer Functions header */
.customization-header {
font-size: 18px;
font-weight: bold;
color: #333;
}
.footer {
background-color: #424141;
color: white;
padding: 1px 2px;
text-align: center;
height: 20px;
}
.header {
font-size: 18px;
color: #333;
margin-bottom: 20px;
}
input[type="checkbox"] {
width: 15px;
height: 15px;
padding: 15px;
cursor: pointer;
}
.line-break {
background-color: #007CF7;
height: 2px;
margin-bottom: 20px;
margin-top: 20px;
}
.link-footer {
font-size: 12px;
color: white;
text-align: center;
margin-top: 2px;
}
/* This is to create the vertical line after the logo in the header */
.logo-span {
position: relative;
padding-right: 10px;
margin-right: 10px;
}
/* Update this section to update the positioning of the vertical line in the header */
.logo-span::after {
content: '';
/* This is necessary to create a pseudo-element */
position: absolute;
right: -5px;
/* Aligns the pseudo-element to the right side of the .logo-span */
top: 50%;
/* Start at the vertical center of the .logo-span */
transform: translateY(-50%);
/* This will center the line vertically */
height: 75%;
width: 2px;
background-color: #fff;
}
.section-description {
padding-top: 5px;
font-style: italic;
}
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
top: -2px;
left: -2px;
font-size: 3em;
}
/* This creates the tooltip icon */
.tooltip .tooltip-icon {
padding-right: 20px;
font-size: 14px;
color: black;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAADpklEQVR4nO2ZX2jOURjHP/HasMnfFSMX/uzClfwvXFBkRi1JSsYFSlumRsuQmyFXCLmRzeSKlaa4I+2CG3/Gboxd2DSGCaPhwnTqedfT6fd6zznv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J/KmljtkMzMWXcfcEV0XTK6P2V6tUg9Xy2HlH/iZ9YsWfjP+QMGn84XmyTUEwAAAABJRU5ErkJggg==');
background-position: right;
background-repeat: no-repeat;
background-size: 15px 15px;
}
/* Controls the tooltip text. This may need updates to make it more responsive with different screen sizes */
.tooltip .tooltiptext {
visibility: hidden;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 70%;
left: 50%;
transform: translateX(-70%);
/* this helps make sure the tooltip text stays within the popup window*/
opacity: 0;
transition: opacity 0.3s;
font-size: 1em;
width: 250px;
max-width: 250px;
padding: 5px;
box-sizing: border-box;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
font-size: .3em;
}
/* Styling of the button when there are unsaved changes */
.unsaved-changes {
opacity: 100%;
cursor: pointer;
background-color: #f27901;
pointer-events: auto;
}
.unsaved-changes:hover {
background-color: #d54915;
}
.tooltip.cd{
font-size: 14px;
}
.tooltip.cd .tooltiptext{
font-size: 11px;
font-weight: 300;
bottom: 20px;
left:0;
}
#options-link{
margin: 0;
font-size: 12px;
color: #000;
text-decoration: underline;
margin-top: 10px;
display: block;
cursor: pointer;
}
</style>
</head>
<body>
<div class="banner">
<span class="logo-span"><img src="images/ga4fixer48.png" alt="Logo"> </span>
<span class="banner-text">GTM FIXER</span>
</div>
<div class="container">
<div class="customization-header">Fixer's Toolbelt</div>
<div class="section-description">Customize GTM features</div>
<div class="checkbox-group">
<input type="checkbox" id="tagErrorHighlighter" name="options" checked>
<label for="autoDetect">Highlight Tag Errors in Preview Mode</label>
<div class="tooltip"><span class="tooltip-icon"></span>
<span class="tooltiptext">Tags with errors are highlighted in Tag Assistant</span>
</div>
</div>
<div class="checkbox-group">
<input type="checkbox" id="tagID" name="options">
<label for="tagID">Add GTM Tag IDs to GA4 events</label>
<div class="tooltip">
<span class="tooltip-icon"></span>
<span class="tooltiptext">Add GTM tag IDs to GA4 event parameters for troubleshooting events in GA4.</span>
</div>
</div>
<div style="text-align: center;">
<button class="button" id="save-reload">Save & Reload</button>
</div>
<hr class="line-break">
<div class="customization-header">
Custom Dimensionator
<div class="tooltip cd"><span class="tooltip-icon"></span>
<span class="tooltiptext">Get started by configuring options and input your GTM & GA4 account details.</span>
</div>
</div>
<div class="section-description">Automatically create custom dimensions & metrics in GA4 from GTM event parameters</div>
<div class="options-section">
<span id="options-link">Configure Options >></a>
</div>
<hr class="line-break">
</div>
<div class="footer">
<p class="link-footer"><a href="https://www.ga4fixer.org?utm_source=gtmfixer&utm_medium=referral" target="_blank">Download our other extension - GA4Fixer!</a> </p>
</div>
<script src="popup.js"></script>
</body>
</html>