-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
292 lines (292 loc) · 13.9 KB
/
Copy pathindex.html
File metadata and controls
292 lines (292 loc) · 13.9 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#e8f4ff" />
<title>UTM Lab | Derrick Ottenbreit</title>
<meta
name="description"
content="A playful browser-based UTM campaign URL builder by Derrick Ottenbreit."
/>
<link rel="stylesheet" href="css/styles.css" media="all" />
</head>
<body>
<div class="blob a"></div>
<div class="blob b"></div>
<div class="blob c"></div>
<div class="grid-bg"></div>
<main class="shell">
<header class="topbar reveal">
<div class="brand">
<div class="mark">D.O.</div>
<div>
Derrick Ottenbreit<small>Tiny tools, big usefulness</small>
</div>
</div>
<div class="pill">
Campaign chemistry, minus the spreadsheets
</div>
</header>
<section class="hero">
<div>
<h1>
<span class="title-line">Mix.</span><br /><span
class="title-line formula-word"
>Track.</span
><br /><span class="title-line">Learn.</span>
</h1>
</div>
<div class="hero-copy reveal">
<p>
Build clean, consistent campaign URLs without memorizing
UTM syntax. Add your ingredients, let the lab normalize
them, then copy the finished formula.
</p>
<div class="stickers">
<span class="sticker">GA4 friendly</span
><span class="sticker">Browser-side</span
><span class="sticker">No sign-in</span>
</div>
</div>
</section>
<section class="workspace">
<article class="card panel-in">
<div class="card-head">
<strong>Campaign ingredients</strong
><span>UTM Lab</span>
</div>
<div class="controls">
<div class="section-label">Destination</div>
<div class="field">
<label for="baseUrl"
><span>Base URL <span class="req">*</span></span
><span class="meta">Where?</span></label
><input
id="baseUrl"
type="text"
placeholder="https://example.com/landing-page"
/>
<div class="help">
Use the final destination URL, including
https://.
</div>
<div class="error" id="urlError">
Enter a valid http:// or https:// URL.
</div>
</div>
<div class="section-label">Required UTMs</div>
<div class="field-grid">
<div class="field">
<label for="source"
><span
>Source <span class="req">*</span></span
><span class="meta">utm_source</span></label
><input
id="source"
list="sourceList"
placeholder="google"
/><datalist id="sourceList"></datalist>
<div class="help">
Where the traffic originates.
</div>
</div>
<div class="field">
<label for="medium"
><span
>Medium <span class="req">*</span></span
><span class="meta">utm_medium</span></label
><input
id="medium"
list="mediumList"
placeholder="paid_social"
/><datalist id="mediumList"></datalist>
<div class="help">How the traffic arrives.</div>
</div>
</div>
<div class="field">
<label for="campaign"
><span>Campaign <span class="req">*</span></span
><span class="meta">utm_campaign</span></label
><input
id="campaign"
list="campaignList"
placeholder="fall_2026_launch"
/><datalist id="campaignList"></datalist>
<div class="help">
Why this link exists. Keep naming consistent
across channels.
</div>
</div>
<div class="presets">
<button
class="preset"
data-source="google"
data-medium="cpc"
>
Google Ads</button
><button
class="preset"
data-source="instagram"
data-medium="paid_social"
>
Instagram Paid</button
><button
class="preset"
data-source="email"
data-medium="email"
>
Email</button
><button
class="preset"
data-source="qr"
data-medium="offline"
>
QR / Print
</button>
</div>
<div class="section-label">Optional detail</div>
<div class="field-grid">
<div class="field">
<label for="content"
><span>Content</span
><span class="meta"
>utm_content</span
></label
><input id="content" placeholder="hero_cta" />
<div class="help">
Differentiate creative, placement, or CTA.
</div>
</div>
<div class="field">
<label for="term"
><span>Term</span
><span class="meta">utm_term</span></label
><input
id="term"
placeholder="psychology_program"
/>
<div class="help">
Usually a paid-search keyword.
</div>
</div>
</div>
<div class="field">
<div class="checkrow">
<div class="checkcopy">
<strong>Normalize values</strong
><small
>lowercase + spaces become
underscores</small
>
</div>
<label class="switch"
><input
id="normalize"
type="checkbox"
checked /><span class="slider"></span
></label>
</div>
</div>
<div class="section-label">Build</div>
<div class="actions">
<button class="btn btn-primary wobble" id="build">
Mix my URL</button
><button
class="btn btn-copy wobble"
id="copy"
disabled
>
Copy URL
</button>
</div>
<button class="btn btn-clear" id="reset">
Reset lab
</button>
</div>
</article>
<aside class="card result-card panel-in">
<div class="card-head">
<strong>Finished formula</strong
><span>Live breakdown</span>
</div>
<div class="result-body">
<div class="formula-stage">
<div class="molecule a"></div>
<div class="molecule b"></div>
<div class="formula-line base">
<span class="formula-key">URL</span
><span id="fBase">your destination</span>
</div>
<div class="formula-line source">
<span class="formula-key">SOURCE</span
><span id="fSource">waiting</span>
</div>
<div class="formula-line medium">
<span class="formula-key">MEDIUM</span
><span id="fMedium">waiting</span>
</div>
<div class="formula-line campaign">
<span class="formula-key">CAMPAIGN</span
><span id="fCampaign">waiting</span>
</div>
<div class="formula-line optional">
<span class="formula-key">EXTRAS</span
><span id="fExtras">none yet</span>
</div>
</div>
<div class="output-label">
<span>Generated tracking URL</span
><span id="lengthLabel">0 chars</span>
</div>
<div class="output-box empty" id="output">
Your tracking URL will appear here.
</div>
<div class="quality">
<div class="quality-item">
<strong id="paramCount">0</strong
><span>UTM params</span>
</div>
<div class="quality-item">
<strong id="qualityScore">--</strong
><span>URL health</span>
</div>
<div class="quality-item">
<strong id="modeLabel">AUTO</strong
><span>Normalization</span>
</div>
</div>
<div class="status">
<div>
<span class="status-dot" id="statusDot"></span
><span id="statusText"
>Ready for ingredients.</span
>
</div>
<span class="meta" id="statusMode">Idle</span>
</div>
<a
class="btn open-link"
id="openLink"
target="_blank"
rel="noopener"
>Open tracked URL ↗</a
>
<div class="tip">
Tip: UTMs are for inbound campaign links. Avoid
putting UTMs on internal links because they can
overwrite attribution in analytics.
</div>
</div>
</aside>
</section>
<footer class="footer reveal">
<span>Derrick Ottenbreit / UTM Lab</span
><span>Mix it. Track it. Measure it.</span>
</footer>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.13.0/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.3/dist/confetti.browser.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>