Repository navigation
Show daily SpaceTech bars and trends from the November 5 launch - #2653
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SpaceTech’s first campaign post went out on November 5, 2026. Dashboard and Details now report traffic, conversions and leads starting at 00:00 UTC that day. The default date range covers up to the latest 90 days of the campaign.
The dashboard shows the selected metric as one bar per UTC day for each of the four campaign sources. A matching line overlays each source’s trailing seven-day average. The Details chart uses the same display for visitors and submissions. Each average includes quiet days and uses the available days at the beginning of the selected range. Choosing a source in the legend toggles its bars and line together. Longer ranges scroll horizontally on smaller screens.
The analytics Lambda enforces the campaign start before aggregation and returns daily per-source metrics alongside the existing weekly and full-period results. Requests spanning launch use November 5 as the start. Requests ending before launch return HTTP 400. The private lead table uses the same dates through the existing Forms API.
Verification
Deploy the analytics Lambda in this repository before the UI so the dashboard has daily source data.