Analytics Stack Overview

Three analytics products run on all sv-website pages. Each serves a distinct purpose.

PlatformCostPrimary UseRetention
Google Analytics 4 (GA4)FreeBehavioral analytics, acquisition channels, UTM attribution, engagement time, conversion funnels14 months (default)
Vercel Web Analytics$10/month (Plus tier)Custom event tracking, privacy-friendly visitor counts, referrer breakdown24 months
Vercel Speed InsightsIncluded with ProCore Web Vitals (LCP, FID, CLS), page load performanceRolling

When to Use Which

QuestionUse
How many visitors this week?Either (Vercel is simpler)
Which pages get the most views?Either
Where is traffic coming from? (referrers, UTM campaigns)GA4 (more detail)
How long do visitors spend on the page?GA4
What % of visitors scroll to the signup form?GA4 (scroll events)
Are partnership emails driving traffic?GA4 (UTM breakdown)
Custom event tracking (signup_submit, cta_click)?Vercel Analytics (already wired)
Core Web Vitals / page speed?Vercel Speed Insights
What are today’s numbers (visitors, scans, leads, new members, live members)?The daily metrics briefing (one stored report)

Google Analytics 4 (GA4)

Added Feb 28, 2026. Provides deeper behavioral analytics beyond what Vercel Web Analytics captures — user flows, engagement time, acquisition channels, and conversion events.

Configuration

ItemValue
AccountMy Storage Valet LLC
Propertymystoragevalet.com
Property ID526241313
Measurement IDG-9SBYJ8QEC1
Stream ID13680726133
Stream NameStorage Valet Website
CostFree (included with Google account)
Pages15 non-promo sv-website pages plus the promo template and its 62 generated promo pages (since Sep 29, 2026)
Dashboardanalytics.google.com (sign in with zach@mystoragevalet.com)
TimezoneEastern (US)
IndustryBusiness & Industrial
Data Collection StartFeb 28, 2026 (no retroactive data)

Conditional Loading (Production Only)

GA4 only fires on the production domain. Vercel preview deploys, localhost, and any other hostname are excluded. This prevents development and AI agent traffic on non-production URLs from polluting analytics data. Implemented Mar 21, 2026.

<!-- Google Analytics (GA4) — only loads on production domain -->
<script>
  if (location.hostname === 'www.mystoragevalet.com' || location.hostname === 'mystoragevalet.com') {
    var s = document.createElement('script');
    s.async = true;
    s.src = 'https://www.googletagmanager.com/gtag/js?id=G-9SBYJ8QEC1';
    document.head.appendChild(s);
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-9SBYJ8QEC1');
  }
</script>

This snippet appears in the 15 non-promo HTML files on sv-website main and in the promo template (promo/index.html), which carries it into the 62 generated promo pages. The dataLayer.push pattern queues events before gtag.js loads, so dynamic script creation works identically to a static <script async> tag.

Enhanced Measurement (Auto-Tracked)

These events are captured automatically by GA4 with no additional code:

EventWhat It Captures
Page viewsEvery page load and client-side navigation
ScrollsWhen user scrolls past 90% of page
Outbound clicksClicks to external domains (e.g., portal.mystoragevalet.com, Stripe checkout)
Site searchQuery parameters in URL (not currently used)
File downloadsClicks on document/file links

Still To Build Out

Internal Traffic Filtering

GA4 filters out traffic from Zach's home network to prevent internal browsing from inflating analytics data. This is a two-part system: a traffic rule that tags matching IPs, and a data filter that excludes tagged events.

GA4 data filters are permanent

Once a data filter is set to Active, excluded data is never processed and can never be recovered — not in reports, not in BigQuery exports. Filters only apply forward; historical data is unaffected.

Internal Traffic Rule

ItemValue
Rule NameThe founder’s home-network rule; its label is read in GA4 Admin → Data Filters and is not written on this wiki
traffic_type Valueinternal
IPv4The founder’s home IPv4 address as a /32 CIDR (exact match), set in the GA4 internal-traffic filter; value in 1Password — verified Aug 26, 2026
IPv6The founder’s home IPv6 /64 prefix (CIDR, subnet), set in the GA4 internal-traffic filter; value in 1Password — verified Oct 19, 2026
ISPVerizon (residential) — the IP rotates, see below
LocationGA4 Admin > Data Streams > Configure Tag Settings > Show More > Define Internal Traffic

Data Filter

ItemValue
Filter NameInternal Traffic
Filter TypeInternal Traffic
OperationExclude
Parametertraffic_type exactly matches internal
StateActive
LocationGA4 Admin > Data collection and modification > Data filters

Coverage

ScenarioFiltered?Why
Any device on home Wi-Fi (Mac Studio, MacBook Air, phone)YesSame public IP
Claude in Chrome from Zach's machineYesSame public IP
Phone on cellular dataNoCarrier assigns rotating IPs
MacBook Air on other Wi-Fi (coffee shop, etc.)NoDifferent public IP
AI cloud agents (NotebookLM, Perplexity, ChatGPT)NoCloud server IPs, rotating and unpredictable
Traditional bots (Googlebot, Bingbot)N/AGA4 auto-excludes known bots via IAB list

Updating the IP Address

This IP rotates, and when it does every founder and agent visit silently counts as real customer traffic. It has happened twice: the first rotation went unnoticed for roughly four months, the second was caught in five weeks. It rotated on Jul 21, 2026 and again on Aug 26, 2026. The founder’s home IP addresses are set in the GA4 internal-traffic filter; values in 1Password.

Drift is now detected automatically. sv-audit has a [GA4 INTERNAL-TRAFFIC IP TRIPWIRE] section that compares the live public IP against expected values hardcoded in sv-docs/scripts/sv-final-audit.sh (GA4_EXPECTED_IPV4 and GA4_EXPECTED_IPV6_PREFIX). GA4 offers no admin write with our read-only scope, so the rule stays dashboard-maintained — the tripwire only tells you it has drifted.

When sv-audit reports GA4 IP DRIFT (or analytics start showing your own browsing):

  1. Check the current addresses: curl -s -4 ifconfig.me and curl -s -6 ifconfig.me
  2. Go to GA4 Admin > Data Streams > Storage Valet Website > Configure Tag Settings > Show More > Define Internal Traffic
  3. Edit the home-network rule and update both conditions — the IPv4 /32 and the IPv6 /64 prefix
  4. Then update the two expected values in sv-final-audit.sh and commit, or the tripwire keeps firing on an already-fixed rule
  5. Confirm the “Internal Traffic” data filter is still Active under Data collection and modification > Data filters

The rule name is only a label and the rule works regardless. No address, IP or label value is written on this wiki (see the AI Reference rule).

Known Unfiltered Noise Sources

These appear in GA4 data and cannot be practically filtered. Volume is low (~20–30 sessions/week combined).

SourceTypical City in GA4What It Is
NotebookLMVariousGoogle AI tool analyzing the site; shows as notebooklm.google.com referrer
Microsoft Azure botsMoses Lake, WAAI agents running on Azure data center infrastructure
Google/tech infrastructureSan Jose, CAVarious Google services and crawlers
Other cloud botsChicago, IL; (not set)Unidentified automated traffic from cloud data centers

Automatic Bot Exclusion

GA4 automatically excludes traffic from known bots and spiders using Google's own research and the IAB (Interactive Advertising Bureau) International Spiders and Bots List. This is always on and cannot be disabled or configured. It does not cover AI browsing agents that use real browser instances.

Vercel Web Analytics

ItemValue
PlanWeb Analytics Plus ($10/month add-on)
Pages14 non-promo sv-website pages plus the promo template and its 62 generated promo pages
Integration/_vercel/insights/script.js (handles both Web Analytics and Speed Insights)
Reporting Window24 months (Plus tier)
DashboardVercel Dashboard > sv-website > Analytics

Reading it from the Studio (Nov 2, 2026)

The Vercel CLI query API is the working read path: vercel api "/v1/query/web-analytics/visits/aggregate?projectId=prj_Q8dz2DsO7IfbkJPo4rnfj2CnXDmE&teamId=team_P38QOjgKqHSaHvRqmgmoIQWg&by=day&since=<ISO>&until=<ISO>" --method GET, with by one of hour, day, week, month, year, country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, and /events/aggregate grouped by eventName or eventData/<key> with filters such as eventName eq 'campaign_landing'. by=environment returns one exact-window total. The Vercel connector’s analytics tools answer “Web Analytics not found” for sv-website; a tool error never means analytics is off. The daily pull is scripted in the Claude Code skill sv-daily-metrics, which also reads leads from Supabase and members from Stripe, subtracts the internal tests recorded in Marketing/Analytics/internal-tests.csv, appends one row a day to Marketing/Analytics/daily-metrics-log.csv and writes the Monday scorecard (/scorecard). The skill’s daily chat report starts from the stored report described under Daily Metrics Briefing; its log row and the Monday scorecard are unchanged. Founder and agent browsers opt out of counting with ?sv-internal=on once per browser.

Deprecated script path removed (Mar 21, 2026)

The old /_vercel/analytics/script.js path was returning 404. Vercel Web Analytics now operates through /_vercel/insights/script.js. The dead script tag was removed from all 9 HTML files.

Vercel Speed Insights

Tracks Core Web Vitals (LCP, FID, CLS) from real user sessions. Loaded via <script defer src="/_vercel/insights/script.js"></script> on all pages. Dashboard at Vercel > sv-website > Speed Insights.

Script-Tag API Pattern

Do NOT use window.va.track()

The .track() method only exists in the npm package (@vercel/analytics). The script-tag integration sets window.va as a function, not an object. Using .track() throws TypeError: window.va?.track is not a function.

// CORRECT — script-tag API
window.va?.('event', { name: 'signup_submit' });
window.va?.('event', { name: 'cta_click', data: { text: 'Get Started', location: 'hero' } });

// WRONG — npm package API (will throw TypeError)
window.va?.track('signup_submit');
window.va?.track('cta_click', { text: 'Get Started' });

Custom Events Reference

All custom events fire through Vercel Web Analytics using the window.va?.('event', ...) pattern. GA4 does not receive these — it relies on Enhanced Measurement for automatic event capture.

Landing Page (index.html)

Event NameTriggerData
campaign_landingVisitor lands on any page with a src or utm_* tag (once per landing)source, medium, campaign, src
promo_context_landingVisitor arrives with promo context (from a promo page CTA)slug, promo, src
signup_submitSignup form submission—
signup_checkoutStripe checkout redirect—
signup_waitlistWaitlist form submissioncity, zip
cta_clickCTA button clicktext, location
faq_openFAQ accordion openedquestion
scroll_depthPage scroll milestonesdepth (25%, 50%, 75%, 100%)

Partnerships Page (partnerships.html)

Event NameTriggerData
cta_clickCTA button clicktext, location
faq_openFAQ accordion openedquestion
scroll_depthPage scroll milestonesdepth (25%, 50%, 75%, 100%)
partnership_form_submitPartnership inquiry form submittedproperty
partnership_form_successForm submission succeededproperty
partnership_form_errorForm submission failedproperty, error

Promo Pages (promo/index.html)

Event NameTriggerData
promo_page_viewPromo page loadedslug, property, view, src, offer
promo_cta_clickPromo CTA clickedslug, property, destination, view, src, offer
promo_share_copyShare link copied to clipboard (PM view only)slug, view, src
promo_link_copyPromo link copied (PM view only)slug, view, src

The view field distinguishes resident vs pm views. The src field tracks attribution origin (e.g., email, link, direct).

Partnership Campaign Measurement

Storage Valet's growth strategy is partnership-driven: property management companies in Hudson County act as distribution channels to reach residents. Analytics is the system that validates whether this strategy is working.

The Measurement Chain

Each outreach wave generates measurable signals across the stack:

  1. Outreach email sent — agents draft each email in Zach’s Gmail (zach@mystoragevalet.com), and he adds a personal touch and sends it himself (founder ruling Oct 12, 2026; never Resend or an automated sender). The outreach engine targets, drafts, checks recency and suppression, and logs to Strategic_Partnerships/Outreach-Engine/outreach-log.jsonl; it never sends. Engagement shows up as UTM visits
  2. PM clicks partnership link — UTM params (utm_source, utm_medium, utm_campaign) captured by GA4 on partnerships page
  3. PM submits partnership form — partnership_form_submit event fires in Vercel Analytics; the form submits its UTM params with the inquiry
  4. PM views promo page — promo_page_view with view: pm fires; PM shares link with residents
  5. Resident visits promo page — promo_page_view with view: resident and src attribution fires
  6. Resident clicks CTA — promo_cta_click fires, then promo_context_landing on the landing page
  7. Resident signs up — signup_submit and signup_checkout events fire

Key Questions Analytics Can Answer

QuestionWhere to LookWhat to Check
Were outreach emails sent?Zach’s Gmail Sent folder and the outreach engine’s logWhich drafts Zach sent, and when
Are PMs visiting the partnerships page?GA4 Acquisition > Traffic acquisitionFilter by utm_campaign matching wave name
Are PMs submitting partnership inquiries?Vercel Analytics > Eventspartnership_form_submit count
Are promo pages being viewed by residents?Vercel Analytics > Eventspromo_page_view with view: resident
Which properties drive the most traffic?Vercel Analytics > Eventspromo_page_view grouped by slug
Are residents converting from promo pages?Vercel Analytics > Eventspromo_context_landing → signup_submit correlation
Which outreach wave performed best?GA4 AcquisitionCompare utm_campaign values across waves

Superseded: March 2026 automated waves

Waves 1A, 1B and 2 went out as automated sends between Mar 17 and Mar 22, 2026, to 29 properties in all; no automated send has gone out since. That send path is superseded by the Oct 12, 2026 ruling: outreach now goes out personally from Zach’s Gmail. The analytics infrastructure documented on this page is what enables performance review — GA4 UTM data shows whether outreach emails drove partnerships page visits, and Vercel custom events show whether those visits converted to form submissions and downstream resident signups.

UTM Campaign Attribution

GA4 automatically captures UTM parameters from URLs and surfaces them in Acquisition reports. No additional code is needed — GA4's Enhanced Measurement handles this natively.

UTM Parameters

ParameterPurposeExample
utm_sourceWhere the traffic came frompm_email, email, google
utm_mediumMarketing channelemail, cpc, social
utm_campaignSpecific campaign namewave1a_outreach, spring_promo

Partnership Form UTM Capture

The partnerships page (partnerships.html) auto-captures UTM parameters from the URL and submits them alongside the partnership inquiry form. This ties each inquiry to the outreach wave that produced it — when a property manager clicks a link in an outreach email, the UTM params travel with the inquiry.

// Hidden form fields populated from URL params
form.querySelector('[name="utm_source"]').value = getParam('utm_source');
form.querySelector('[name="utm_medium"]').value = getParam('utm_medium');
form.querySelector('[name="utm_campaign"]').value = getParam('utm_campaign');

Campaign Tracking: src= on Every Link and QR (Oct 28, 2026)

Our own src= tag goes on every link and QR code we print or post. The database is the source of truth for results; GA4 and Vercel are the secondary view.

Promo Page Source Attribution

Promo pages attribute traffic with a ?src= parameter. PM-toolkit share outputs emit: ?src=email (the copied newsletter snippet), ?src=link (the copy-link button), and ?src=pm-qr (the on-page QR). Printed collateral QRs (promo-cards-v6 engine) emit per-asset tokens since Jul 21, 2026: ?src=postcard and ?src=flyer, optionally suffixed with a campaign wave passed as the generator's 4th argument (e.g. make-property-assets.sh <slug> <CODE> "<Name>" aug26 → ?src=postcard-aug26). Assets printed before that date carry the legacy generic ?src=qr — read it as “print, asset unknown.” A visit with no token attributes as direct. (An earlier version of this page documented a ?src=pm token that was never emitted.) The ?pm=true toggle activates the PM view, is stripped from the URL bar via history.replaceState, and applies only while the URL carries it: a reload shows the resident view, and leftover svPromoPm keys are removed on every load (since Sep 29, 2026, sv-website #44). Attribution written to sv.pre_customers.referral_source is first-touch as of Jul 21, 2026 — a later signup attempt never replaces an existing attribution (NULL still fills).

Daily Metrics Briefing (live Nov 3, 2026)

One stored report, computed in production, is the single source for the daily numbers. It is built at 6:02 AM and 6:02 PM Eastern (since Nov 5, 2026; 8:02 before, founder request), emailed to Zach once per slot and read by the metrics dashboard. Counts only: no emails, names, phones, notes, referral codes or Stripe ids ever leave the database. Architecture, cron jobs and secret names: Technology › Metrics Briefing.

What Arrives and When

ItemDetail
Schedule6:02 AM and 6:02 PM Eastern (since Nov 5, 2026). A retry at :22 re-publishes a missing or failed slot once and records delivery; a second failure raises an ops alert.
EmailOne per slot, to zach@ from concierge@. Subject: SV briefing <date> <08|20>:00 E?T · r<yyyymmdd>-(am|pm) · rev<N>. The text part carries a SV-BRIEFING-JSON v1 block (contract_version 1) that Dot, Zach’s ChatGPT assistant, reads from Gmail.
SourcesThe database half is computed in SQL, read-only. Stripe is read with GET only. Resend supplies counts by template kind and the last event. Traffic comes from the Studio snapshot below.
Stored reportTable sv.metrics_snapshots: one report row per slot and revision. Rows older than 90 days are deleted daily.

What the Numbers Mean (definitions v2.1, Nov 3, 2026)

Traffic Snapshot (Studio)

The user LaunchAgent com.storagevalet.metrics-snapshot runs ~/.claude/skills/sv-daily-metrics/scripts/publish-snapshot.sh at 5:45 AM and 5:45 PM Eastern (since Nov 5, 2026; 7:45 before) (log ~/Library/Logs/sv-metrics-snapshot.log). It pulls Vercel Web Analytics for fixed windows, each with its own status: yesterday, the day before, today so far, the last 7 days (D-7 to D-1), the prior 7 days (D-14 to D-8) and the campaign since Oct 28, 2026. It tries GA4 once, then posts the snapshot to the metrics-briefing function with the ingest token. The snapshot is emailed only as a fallback when the post fails twice.

Dashboard

Live since Nov 4, 2026 at sv-metrics.vercel.app (private repo StorageValet/sv-metrics, Vercel project sv-metrics, git-connected to main). It shows the latest stored report plus a Live preview built from the database and the snapshot only, with no Stripe. It is phone-first, in light and dark, on the v9 Copper Patina tokens. The dashboard is token-gated: the read token is pasted once per browser and sent only as an Authorization header, and the metrics-briefing function refuses a request without it (HTTP 401). The name metrics.mystoragevalet.com is attached on Vercel and resolves once the registrar move completes (Technology › Domain and DNS). Audience: Zach and the investors he shows it to.

Reading the Report by Hand

With the Supabase MCP, read-only:

select public.fn_sv_latest_report_v1();
select public.fn_sv_report_history_v1(14);
select public.fn_sv_briefing_preview_v1();

What Was Retired

The Claude cloud routine “SV marketing digest (every 12h)” (8:07 AM and 8:07 PM Eastern, created Nov 2, 2026) is retired: it was disabled on Nov 3, 2026, once the first scheduled briefing was verified. The Studio job’s email bridge is now a fallback only.

GA4 MCP Tools

The GA4 Analytics MCP (mcp__analytics-mcp__*) provides read-only access to GA4 reports and property metadata from Claude Code sessions.

Infrastructure

ItemValue
Google Cloud Projectstorage-valet-analytics
OAuth ClientSV Analytics MCP (Desktop app type)
Client JSON~/.config/gcloud/ga4-oauth-client.json
ADC Token~/.config/gcloud/application_default_credentials.json
APIs EnabledAnalytics Admin API, Analytics Data API
1Password ItemGoogle Cloud - GA4 Analytics MCP
Scopesanalytics.readonly, cloud-platform (read-only)

Re-authenticating

If the ADC token expires (the MCP returns a 503 “Reauthentication is needed” error), re-run:

CLOUDSDK_PYTHON=/opt/homebrew/bin/python3.13 gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform \
  --client-id-file=/Users/zacharybrown/.config/gcloud/ga4-oauth-client.json

Use the full path for --client-id-file (not ~). A browser window will open for Google OAuth.

MCP Limitations

The GA4 analytics MCP is read-only for reports and property metadata only. It cannot inspect admin-level settings including internal traffic rules, data filters, tag configuration, or data stream settings. When asked about GA4 admin configuration, always qualify that MCP tools cannot verify it — recommend checking the GA4 admin UI directly.

Appendix: Industry Benchmarks

Reference benchmarks for B2B cold email outreach to property management companies, compiled from industry reports (Instantly, Belkins, HubSpot, Martal Group, 2025–2026 data). SV's outreach is tighter-ICP than typical B2B cold email (local, hyper-relevant), so performance should skew toward the higher end of these ranges once follow-up sequences are in place.

Email-Level Metrics

MetricInadequateAverageHigh-PerformingNotes
Open rate<25%30–40%45%+Real estate industry avg ~42%; Apple Mail Privacy inflates opens — treat cautiously
Click-through rate<2%3–5%8%+More reliable signal than open rate
Reply rate<2%3–5%8–15%42% of all replies come from follow-ups; single-touch waves will underperform
Bounce rate>10%3–5%<2%Verify emails before sending; Wave 1A had 27% bounce (4/15)

Funnel-Level Metrics (Per Wave)

MetricInadequateAverageHigh-PerformingNotes
Email → promo page visit<5%10–15%20%+Requires UTM tracking on all email links
PM share tool engagement01–2 per wave3+ per wavepromo_share_copy / promo_link_copy events — strongest signal of PM distribution
Partnership form submission01 per 20 sent1 per 10 sentpartnership_form_submit events
Meeting booked0 per wave1 per 20–30 sent1 per 10 sent~1–2% meeting rate is typical for cold B2B
Resident signup per partnered property013+Full funnel: promo_context_landing → signup_checkout

When to Stop or Pivot

Need 50–100+ sends across 2–3 waves to establish SV's own baseline. 27 sends across Wave 1A + 1B is approaching but not yet sufficient for statistical significance.