Skip to content

Add German /surprise landing page - #86

Merged
sislr merged 4 commits into
developfrom
shikigamiya/feature/27032-surprise-page
Nov 18, 2026
Merged

sislr merged 4 commits into
developfrom
shikigamiya/feature/27032-surprise-page

Conversation

@shikigamiya

@shikigamiya shikigamiya Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

TICKET-27032

Adds the German landing page at /surprise, where the QR code on the trade-fair scratch cards points. It currently returns a 404.

  • Video: the attached Tom_nov_1.mp4 is converted with the ffmpeg command from the ticket into videos/surprise-de.mp4: H.264 High, AAC, 720×1280, faststart (moov before mdat), 608 KB. The poster is assets/images/surprise-poster.jpg (49 KB). The original file is not committed.
  • Page: _pages/surprise.html is a copy of _pages/rails-world-2026.html. It changes only the places listed in the ticket, plus the technical fixes it asks for: video id/poster/preload="metadata", no autoplay, no empty <track>, loading="eager" on the background, and js-surprise-cta on the button. Prettier reformatted the self-closing <video>. The page is noindex and stays out of sitemap.xml.
  • Tracking: an inline script pushes surprise_video_start, surprise_video_progress (video_percent: 50), surprise_video_complete and surprise_cta_click (link_url) to the dataLayer, each at most once per page view. The CTA links to / without UTM parameters.
  • Caddyfile: /surprise is excluded from @saved_*, @browser_* and @unprefixed_page. /en|fr|it/surprise redirects with a 302 to /surprise/ and keeps the query string.

/surprise on a 390×844 mobile viewport

Verification

  • Ran jekyll build --strict_front_matter and scripts/verify_site.rb: both pass (39 HTML files, 36 localized routes).
  • Ran Caddy 2.10 locally against the built site:
    • /surprise with Accept-Language: en → 200.
    • /surprise/ with deploio_language=it → 200.
    • /fr/surprise?utm_source=a&b=c → 302 to /surprise/?utm_source=a&b=c.
    • / and /rails_world_2026/ still redirect to /en/….
  • Played the video in headless Chrome. All four events fired exactly once, including on replay and on a double click.

⚠️ Worth a look

  • 4c is not implemented: the campaign redirect for untagged QR visits. The ticket says to set [MESSE-KÜRZEL] in the ticket before implementing it, and it has not been set yet. I did not want to put a guessed value into production analytics. Once the abbreviation is known, add this next to @surprise_localized:
    @surprise_untagged {
    	path /surprise /surprise/
    	not query utm_source=*
    }
    redir @surprise_untagged /surprise/?utm_source=<kürzel>&utm_medium=qr&utm_campaign=surprise_scratchcard 302
    
    Until then, QR visits without UTM parameters count as "Direct" in GA4. This is why the PR is a draft.
  • No VTT file was delivered, and none is needed: the video has German subtitles burned in (see screenshot).
  • Branch name: the ticket asks for feature/surprise-page, but our conventions require the shikigamiya/feature/27032-… prefix.
  • Two tests in scripts/pricing-calculator.test.mjs already fail on develop (Economy · 1 GB vs Single database · 1 GB, after "Change Locales"). That is unrelated to this PR.

Task #671

🤖 Generated with Claude Code

@sislr
sislr marked this pull request as ready for review November 18, 2026 07:59
@sislr
sislr requested a review from a team as a code owner November 18, 2026 07:59
@sislr
sislr requested review from sislr and removed request for a team November 18, 2026 08:01
@sislr
sislr merged commit 864ac69 into develop Nov 18, 2026
0 of 2 checks passed
@sislr
sislr deleted the shikigamiya/feature/27032-surprise-page branch November 18, 2026 08:55
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