GlowPure — CPA Landing Page Template
A conversion-focused, single-page marketing template for skincare, beauty and wellness offers — with built-in lead capture, urgency mechanics and ad-platform tracking.
The template as shipped — desktop offer band, mobile layout and these docs.
More renders are in the screenshots/ folder.
1 · Welcome
Thanks for purchasing GlowPure. This template is built for performance marketers: it is a single landing page engineered around one goal — capturing the lead and pushing the visitor to the offer.
- Zero dependencies — no frameworks, no jQuery, no build tools. Open the file and it works.
- Two editions in one package — a single-file build (drag & drop) and a modular, commented source.
- Conversion mechanics pre-wired — countdown, exit-intent popup, social-proof toasts, sticky mobile CTA.
- Attribution built in — every lead is stored with UTMs and CPA click IDs.
index.html from the package root.
Use template/ when you want to edit CSS/JS comfortably.2 · What's inside
🎯 Conversion focused
Hero, benefits, how-it-works, before/after, reviews, FAQ, offer band, trust badges, footer CTA — the full persuasion stack.
📬 3 lead-capture forms
Hero form, offer-band form and exit-intent popup, all with inline validation and a thank-you modal.
📊 Attribution
UTMs, click_id, aff_id, sub1–sub5, gclid, fbclid, ttclid, referrer and page URL are captured with every lead.
📡 Pixel ready
Meta Pixel, TikTok Pixel and Google Tag Manager — just paste your IDs, no code changes.
⚡ Fast
~575 KB total, fonts and images embedded, 5 image requests, no render-blocking third parties.
🎁 Bonus backend
A dependency-free Python server that stores leads in CSV/JSON and serves a dashboard.
3 · Quick start
Option A — just open it
Double-click index.html (the one-file build). Everything — fonts, images, CSS, JS — is embedded.
Leads typed into the forms are queued in localStorage because there is no server.
Option B — upload to any host
- Upload
index.htmlto your web host, Netlify drop, Vercel, S3, cPanel — anywhere. - Open
template/index.html, setCONFIG.offerUrlin the script block to your affiliate link, then runpython3 tools/build.py. - If you edit the source, run
python3 tools/build.pyto regenerate the one-file build.
Option C — local preview + working lead capture
cd bonus/lead-backend
python3 server.py 8000
# open http://localhost:8000 → the page
# http://localhost:8000/leads → lead dashboard
# http://localhost:8000/stats → JSON counters
Requires Python 3.8+ and nothing else — no pip installs.
4 · File structure
GlowPure-v1.0.2/
├── index.html ← READY-TO-USE single-file build (start here)
├── template/ ← editable modular source
│ ├── index.html
│ ├── assets/css/style.css
│ ├── assets/js/main.js
│ ├── assets/fonts/*.woff2 (+ OFL licence)
│ └── assets/img/*.jpg (demo photos)
├── documentation/
│ └── index.html ← this file
├── screenshots/ ← full-page renders (desktop, tablet, mobile)
├── preview/ ← marketplace cover images (1200×900, 590×300, 80×80)
├── LICENSE.txt ← full licence terms (Codester licence prevails)
├── licenses/ ← third-party notices: font OFL licences, demo-image notice
├── bonus/lead-backend/
│ ├── server.py
│ └── README.md
├── CHANGELOG.md
└── README.md
5 · Brand & colours
All colours live in one place — the :root block at the top of template/assets/css/style.css
(or inside the first <style> tag of the single-file build).
:root{
--green : #1d3532; /* announcement bar */
--purple : #571f97; /* primary CTA + accents */
--deep : #371757; /* offer band */
--gold : #feee70; /* secondary CTA + price */
--cream : #f8f1eb; /* hero background */
--sage : #edf1e2; /* how-it-works background */
--ink : #1c1c1c; /* headings */
}
Changing a variable updates every button, badge, icon and section that uses it — no find & replace needed.
6 · Content & copy
| What | Where |
|---|---|
| Announcement bar text | .announce — top of <body> |
| Logo & navigation | header.site → .brand, .menu |
| Headline, sub-headline, bullet benefits | section.hero → h1, .lead, .benefits |
| Ingredient blocks | .ing-grid — five .ing items |
| How-it-works steps | .steps — four .step blocks |
| Testimonials | .rev-grid — three .rev cards |
| FAQ questions & answers | #faq → .faq-item |
| Prices & discount | .price-box + CONFIG.discountCode |
| Social-proof toasts | proofs[] array in main.js |
7 · Replacing images
Demo photos live in template/assets/img/. Swap the files, keep the filenames, and you're done
— or point the src attributes at your own assets.
| File | Used in | Recommended size |
|---|---|---|
hero-model.jpg | hero (right side) | ≈ 620 × 1110 px, portrait |
serum-bottle.jpg | hero + offer band | ≈ 760 × 760 px, square, transparent-friendly |
before.jpg / after.jpg | before/after block | ≈ 620 × 340 px each |
Ingredient icons and trust badges are inline SVG — recolour them with the CSS stroke attribute
or swap in your own icons.
If you use the single-file build, re-generate it after changing images:
python3 tools/build.py # rebuilds index.html from template/ (css, js, fonts, images)
8 · Configuration (CONFIG)
Everything you normally need to touch lives in one object at the top of
template/assets/js/main.js (or the <script> block in the one-file build):
const CONFIG = {
leadEndpoint : '/api/lead', // where leads are POSTed
offerUrl : '#offer', // ← your affiliate / CPA network link
gtmId : '', // 'GTM-ABC1234'
fbPixelId : '', // '123456789012345'
fbEvent : 'Lead',
tiktokPixelId: '', // 'CXXXXXXXXXXXXXXXXX'
discountCode : 'GLOW50'
};
| Key | What it does |
|---|---|
leadEndpoint | URL receiving the JSON lead. Use the bundled Python backend, a serverless function, or a form service such as Formspree / Getform / Web3Forms. |
offerUrl | Destination of the thank-you modal button and every “Order Now” CTA. External links open in a new tab automatically. |
gtmId | Loads Google Tag Manager. Leave empty to disable. |
fbPixelId / fbEvent | Loads Meta Pixel and fires the named standard event on submit. |
tiktokPixelId | Loads TikTok Pixel and fires SubmitForm. |
discountCode | Code shown in the thank-you modal and inline success messages. |
9 · Countdown & urgency
The offer band runs a rolling countdown. To change its length, edit the highlighted value:
const total = 48 * 3600 * 1000; // ← 48 hours, in milliseconds
const start = Date.now() - (14 * 3600 + 36 * 60 + 21) * 1000; // initial display
It wraps automatically when it reaches zero, so the page always looks “live”. For a fixed deadline instead, replace the block with a target date:
const total = new Date('2026-12-31T23:59:59').getTime() - Date.now();
The exit-intent popup fires once per session when the cursor leaves the top of the viewport (desktop only), or after 45 s if the visitor has scrolled past 45 % of the page.
10 · FAQ accordion
Add or remove items by copying a block — no JavaScript changes required:
<div class="faq-item">
<button class="faq-q">Your question?<span class="ic">+</span></button>
<div class="faq-a"><p>Your answer.</p></div>
</div>
11 · Lead capture
Three forms share one handler (hookLead()). Each validates the email, POSTs the payload,
fires conversion events and opens the thank-you modal.
| Form | Element ID | Recorded as |
|---|---|---|
| Hero | #heroForm | source: "hero" |
| Offer band | #offerForm | source: "offer-band" |
| Exit-intent popup | #exitForm | source: "exit-intent" |
Payload
{
"email": "visitor@example.com",
"source": "hero",
"ts": "2026-10-18T09:12:44.001Z",
"utm_source": "facebook", "utm_medium": "cpc", "utm_campaign": "serum-launch",
"click_id": "abc123", "sub1": "aff-9", "gclid": "…", "fbclid": "…",
"page_url": "https://…", "referrer": "https://…"
}
localStorage under glowpure_leads
and the visitor still sees the success state.Using a form service instead
leadEndpoint : 'https://formspree.io/f/YOUR_FORM_ID'
The code sends JSON; Formspree, Getform and Web3Forms all accept it. For Google Sheets, point it at an Apps Script Web App URL.
12 · Bonus Python backend
bonus/lead-backend/server.py is a ~200-line, dependency-free server:
| Route | Purpose |
|---|---|
POST /api/lead | stores a lead (validates the email, returns {"ok":true}) |
GET /leads | HTML dashboard with the most recent leads |
GET /leads.csv | CSV download |
GET /stats | JSON counters, handy for uptime checks |
python3 server.py 8000 # or any port
python3 server.py 80 # needs admin rights
The bundled lead dashboard at /leads.
13 · Pixels & analytics
Fill in the IDs in CONFIG and tracking starts automatically. These events are pushed to
dataLayer (available to GTM/GA4 even without a pixel installed):
| Event | Fires when | Payload |
|---|---|---|
generate_lead | a form is submitted successfully | form_source, lead_email |
cta_click | any CTA button is clicked | cta_text |
exit_intent_shown | the exit popup appears | — |
Meta Pixel additionally fires PageView and CONFIG.fbEvent (default Lead);
TikTok fires SubmitForm.
14 · Deployment
| Host | How |
|---|---|
| cPanel / shared hosting | Upload index.html into public_html. Done. |
| Netlify | Drag the folder onto Netlify Drop, or connect the repo. |
| Vercel | vercel deploy — no configuration needed (static output). |
| GitHub Pages | Push the folder, enable Pages on the branch root. |
| WordPress | Upload via FTP and link to it, or paste the <body> markup into a blank page template. |
| CPA network / tracker | Upload as a custom landing page; keep the relative asset paths or use the single-file build. |
15 · QA & browser support
Every release is checked automatically (tools/qa.py, headless Chromium):
- no horizontal overflow at 320 / 390 / 768 / 834 / 1024 / 1280 / 1366 / 1440 px
- webfonts load, zero broken images, zero console errors
- no duplicate element IDs
- form validation, thank-you modal, FAQ accordion, countdown ticking
- the single-file build and the modular source render with identical section heights
Browser support: current Chrome, Edge, Firefox, Safari (desktop + iOS) and Android Chrome.
The layout uses CSS Grid, Flexbox, clamp(), aspect-ratio and
IntersectionObserver — all widely supported since 2021.
16 · Licence & credits
| Asset | Licence |
|---|---|
| The template itself | Governed by the licence you purchased on Codester — see
../LICENSE.txt (package root) for the full terms and for the direct-sale tiers
that apply only outside marketplaces. |
| Playfair Display, Inter (embedded webfonts) | SIL Open Font License 1.1 — see
../licenses/fonts-OFL.txt |
| Demo photographs | Placeholder only — not licensed for end products,
replace before launch. See ../licenses/demo-images.txt |
| Icons | Hand-drawn inline SVG, free to use as part of the template |
| Bonus backend | MIT — see section 8 of ../LICENSE.txt (package root) |
17 · Support
Support is included with every purchase and covers installation, configuration and defect correction for the template as delivered. No purchase code, licence key or other proof of purchase is required to ask for help.
How to reach support
- Codester buyers — open the item page on Codester and use the support / message channel on that page (the item's Support tab or the comment section). Simply write to us from your Codester account; there is no separate purchase-code verification step.
- Other marketplaces and direct sales — reply to your order confirmation email, or send a message through the marketplace you purchased from.
To get a faster answer, include
- what you were doing, and what you expected to happen instead;
- a page URL, or a screenshot if the issue is visual;
- your browser and device (for example: Safari on iPhone, Chrome on Windows).
What support covers
- Installation, configuration and defect correction for the template as delivered.
- Questions about anything documented in sections 1–16 above.
Support does not cover custom feature development, third-party service integrations beyond what is documented, or issues caused by your own modifications or by your hosting environment.
18 · Changelog
v1.0.2 — 2026-10-18
• Licensing clarified: use is governed solely by the Codester licence
purchased; unlimited-use / unlimited-client-project wording removed.
• Licence moved to the package root (LICENSE.txt) and every reference to it
corrected so no link points at a missing file.
• Demo placeholder links removed from the page footer.
v1.0.1 — 2026-10-18
• Support section rewritten: no order / licence code required.
• Codester buyers reach support through the item page — no separate
purchase-code verification.
v1.0.0 — 2026-10-18
• First public release
• Single-file build + modular source
• Lead capture (3 forms), Python backend + dashboard
• Meta / TikTok / GTM tracking, UTM + click-ID attribution
• Countdown, exit-intent popup, social-proof toasts, FAQ accordion
• Documentation, screenshots and marketplace preview kit