Skip to content

feat(website): enable the contact form and analytics - #109

Merged
bpacholek merged 2 commits into
mainfrom
website/enable-analytics-form
Jul 20, 2026
Merged

bpacholek merged 2 commits into
mainfrom
website/enable-analytics-form

Conversation

@bpacholek

Copy link
Copy Markdown
Contributor

Sets the two values that shipped as deliberate placeholders:

  • web3forms_key → the real Web3Forms access key
  • ga_id → G-14LYCBCVLS

Why this is more than a config edit

privacy.md stated as fact that no measurement ID was configured and that the form was switched off. Both sentences become false the instant this config changes - on the one page where being wrong actually matters.

So rather than hand-editing them, both statements are now derived from the config they describe:

  • the analytics paragraph branches on site.ga_id
  • the third-party-services paragraph derives form_live from web3forms_key, using the same assign-a-boolean guard contact.md already uses (Liquid has no not contains)

The page promised it would "keep saying which of the two is true". Now it does that by construction, in both directions: clearing either key restores the safe wording automatically.

Verified on a production build

  • GA4 appears as G-14LYCBCVLS, but there is no unconditional <script src=...googletagmanager...>. gtag is still injected only by loadGoogleAnalytics, after Accept or a stored unexpired granted choice. Reject or no choice means nothing is requested from Google.
  • Emission remains double-gated on JEKYLL_ENV=production AND a non-empty ga_id, so a local jekyll serve still loads no analytics.
  • The contact page renders the real form with hCaptcha; the "isn't wired up yet" fallback panel is gone.
  • The privacy page now reads "analytics is switched on" and "the form is live".
  • Zero em-dashes and en-dashes in the built output.
  • Build clean at --baseurl "/sticker-maker".

website/README.md's launch checklist marks items 1 and 2 done and records that the guards remain in place.

🤖 Generated with Claude Code

bpacholek and others added 2 commits July 20, 2026 19:39
Sets the real Web3Forms access key and the GA4 measurement ID, which were
shipped as deliberate placeholders.

Both flips are load-bearing for the privacy page, which stated as fact that no
measurement ID was configured and that the form was switched off. Those two
sentences would have become false the moment this config changed, on the one
page where being wrong actually matters.

Rather than hand-editing them, both are now driven by the config they describe:
the analytics paragraph branches on `site.ga_id`, and the third-party-services
paragraph derives `form_live` from `web3forms_key` using the same
no-`not contains` guard `contact.md` already uses. The page promised it would
"keep saying which of the two is true"; now it does that by construction, in
both directions, so clearing either key restores the safe wording automatically.

Verified on a production build:
- GA4 is present as `G-14LYCBCVLS` but there is **no** unconditional
  `<script src=...googletagmanager...>`. gtag is still injected only by
  `loadGoogleAnalytics`, after Accept or a stored unexpired `granted` choice.
  Emission stays double-gated on production AND a non-empty id, so local
  `jekyll serve` loads no analytics.
- The contact page now renders the real form with hCaptcha; the
  "not wired up yet" fallback is gone.
- The privacy page reads "analytics is switched on" and "the form is live".
- No em-dashes or en-dashes anywhere in the built output.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The value was a placeholder constructed from the applicationId. It is now the
confirmed listing URL for tech.idct.stickermaker, supplied by the owner. The
listing is not serving yet, so the link 404s until the app is published; the URL
itself is final.

All 18 Play links on the site come from this one key, including the JSON-LD
downloadUrl, which was checked to still parse as valid JSON with the query
string intact rather than an HTML entity.

`pli=1` is Google's post-login-interstitial flag and comes from a signed-in
browser session rather than the listing itself. It was requested explicitly and
is harmless, but the comment in _config.yml records that it is not part of the
canonical URL, since the sibling sites deliberately carry no session or campaign
parameters on their store links.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bpacholek
bpacholek merged commit 72da391 into main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant