GA Tracking + Automated Weekly Report

GA Tracking + Automated Weekly Report A sequence diagram generated by Archify. Request page Serve page + GA script Page loaded event PageView + session data Trigger workflow Query metrics (activeUsers, pageViews) JSON metrics Transform JSON to HTML HTML table + summary Send email (HTML body) Deliver HTML report Phase 1 · Website Visit Phase 2 · Scheduled Report (Mon 08:00) Visitor · browser · Sequence participant Visitor browser Website · hosted site · Sequence participant Website hosted site GA Tracking · script in page · Sequence participant GA Tracking script in page GA API · Google Analytics · Sequence participant GA API Google Analytics n8n Scheduler · cron Mon 08:00 · Sequence participant n8n Scheduler cron Mon 08:00 GA Node · report workflow · Sequence participant GA Node report workflow Code Node · JSON to HTML · Sequence participant Code Node JSON to HTML SMTP Server · mail relay · Sequence participant SMTP Server mail relay Inbox · recipient · Sequence participant Inbox recipient Legend request return default message

Passive Tracking

  • • The page ships the GA script with the HTML response
  • • PageView and session data are recorded without a backend hop

Scheduled Reporting

  • • A cron trigger starts the workflow every Monday 08:00
  • • GA4 metrics are queried server-side, not scraped

Rendered Delivery

  • • A Code Node converts JSON metrics into an HTML table
  • • The SMTP relay delivers the report straight to the inbox