Tag Capture
{% comment %}
Kona Tag Capture Page — E3 self-segmentation mechanism.
Template: page.tag-capture.liquid
URL: /pages/tag-capture
USED BY: ice-pack E3 email (Day 7 of scratch-off sequence).
E3 buttons route here with ?tag-use=&email={!email}.
This page:
1. Reads `tag-use` and `email` query params.
2. Shows a brief "saving your preference" UI.
3. POSTs {mode:'tag_capture', email, tag} to the existing AWeber webhook
(same endpoint as /pages/your-kona-ice-pack-bonus).
4. Redirects to the use-case-appropriate Shopify destination.
If either param is missing, falls back to the ice-pack collection home
(so a human who lands here without a tag-use param still gets product
pages).
IF a tag needs to be added or a redirect target changes, edit REDIRECT_MAP
and ALLOWED_TAGS below, and also update:
- scripts/google_apps_script_webhook.js handleTagCapture.ALLOWED_TAGS
- output/ice_pack_e3_draft.md link URLs
SAFETY: the webhook validates `tag` against its own allow-list, so client-
side tampering with the URL cannot apply arbitrary tags. Worst case the
user lands on the collection page with no tag applied.
TO DEPLOY:
1. Shopify Admin → Online Store → Pages → Add page → Title "Tag Capture"
(handle auto-derives to tag-capture) → paste this liquid in HTML view
2. Save (unlisted — link only works from email)
3. No navigation menu entry — link-only page
{% endcomment %}
Kona Chill
Saving your preference…
One moment — we're noting how you use your Kona ice packs so we only send you relevant tips and restock alerts.
