Blueprint

Blueprint – Comprehensive Guide

Blueprint is an implementation toolkit for consultants and teams planning and delivering tracking projects: cross-domain GA4, measurement frameworks, step-by-step guides, checklists, and server- and client-side event code. This guide describes every major feature and how the pieces fit together.


Table of contents

  1. What Blueprint is and who it’s for
  2. Core concepts: projects and data
  3. Navigation and sections
  4. Project panel
  5. Cross-Domain
  6. Installation Methods
  7. Configurations
  8. Server-side (GA4 Measurement Protocol)
  9. Measurement Framework
  10. Implementation Guides
  11. GTM Integration
  12. Testing & Validation
  13. Implementation Checklist
  14. Stakeholder Interviews
  15. Snippet Library
  16. Valued Resources
  17. Export deliverable and Backup & restore
  18. Events: server-side and client-side
  19. Pricing, Account, Contact, Admin
  20. Auth, sync, and limits
  21. Technical setup

1. What Blueprint is and who it’s for

Blueprint is a single-page app that helps you:

It is aimed at:

Data can be used locally only (browser storage) or synced via Supabase when you sign in. Plan limits (e.g. number of projects) apply when using the synced backend.


2. Core concepts: projects and data

Projects

A project is the main container for one client or engagement. Each project has:

Projects are listed in the Project dropdown at the top. The selected project drives:

Project selection is persisted (e.g. in localStorage or per user when signed in), so refreshing the page keeps the same project.

Other data (not per-project)

When you sign in, projects, guides, and frameworks sync to Supabase so you can use the same data across devices and browsers.


3. Navigation and sections

The sidebar lists all sections. Click a section to view it; the main content area shows one section at a time. A search field filters sections by keywords.

Sections:

Section Purpose
Blueprint Overview Intro, what’s in the app, get started
Cross Domain Cross-domain tracking problem, solution, domains, code, download
Installation Methods GTM, direct HTML, WordPress setup
Configurations Basic, ecommerce, SaaS, advanced options and code
Server-side GA4 Measurement Protocol: snippet, event builder, saved events
Measurement Framework Objectives, events, KPIs grid; export
Implementation Guides Step-by-step guides with steps, code, do’s/don’ts; Generate from gaps (AI); export Markdown
GTM Integration Import GTM container JSON, compare to framework, export GTM setup from project
Testing & Validation Validation checklist and test suite
Implementation Checklist Pre-implementation → GTM → Config → Testing → Validation → Documentation
Stakeholder Interviews Stakeholder list per project, takeaways, question bank, templates
Snippet Library Reusable snippets with placeholders (GA4, GTM, cross-domain, etc.)
Valued Resources Curated links (GA4/GTM docs, testing tools); sections set by admins
Pricing Plans, limits, Subscribe
Admin Plans & pricing, settings (theme style, app notice, Brevo), email, users (admin only)
Contact Support / contact form
Account Sign out, billing portal, backup & restore, delete account

4. Project panel

At the top of the app, the Project bar includes:

When a project is selected, you can edit (in the Project panel or in context):

These fields are used by:


5. Cross-Domain

This section explains cross-domain tracking and gives you copy-paste code.

Use this section to hand off or implement the cross-domain linker; keep domains in the project so the snippets stay correct.


6. Installation Methods

Installation describes how to deploy the cross-domain and GA4 setup:

The content is step-by-step; code blocks often use the current project’s Measurement ID and domains where relevant.


7. Configurations

Configurations provide ready-made options (Basic, Ecommerce, SaaS, etc.) and the corresponding code. You pick a configuration; the app shows the snippet with the current project’s domains and Measurement ID injected. Use this to tailor the cross-domain/GA4 setup (e.g. ecommerce, form tracking) and copy the result.


8. Server-side (GA4 Measurement Protocol)

The Server-side section is where you work with GA4 Measurement Protocol (MP): server-side events that send data to GA4 from your backend (or a proxy) instead of only from the browser.

8.1 Full server-side snippet

A code block shows a complete server-side script that:

You can copy or download this block (e.g. ga4-server.js) and use it in your backend. The snippet is updated when you change the project, measurement ID, API secret, or saved events.

8.2 Event builder (“Send test event”)

The event builder lets you construct a single event and either send it or copy it.

Actions:

So: one event definition (name + params), two outputs (server MP vs client gtag).

8.3 Saved events

You can save the event you built (or edit a saved one) so it lives on the current project.

The server-side code block at the top of the section is built from:

So you maintain a list of events per project and choose which ones are actually included in the downloadable snippet.

8.4 Project IDs (safe keeping)

The Server-side section also reminds you that Measurement ID and API Secret (and optionally Container ID) are stored in the Project panel. They are injected into the snippet and event builder; the Container ID is for reference/handoff only.


9. Measurement Framework

The Measurement Framework section helps you align objectives, events, and parameters in a grid.

Frameworks are stored separately; a project can optionally link to one framework so the grid reflects that framework. The grid is useful for scoping and handoff (“these are the events we’ll implement”).


10. Implementation Guides

Implementation Guides are step-by-step documents you create and edit: title, steps, do’s/don’ts, and optional code per step. They are ideal for client handoffs, runbooks, or internal playbooks.

10.1 Creating and editing guides

Guides are saved when you save (or switch guide / create new, depending on app behavior). When signed in, they sync to Supabase.

10.2 Code per step

For any step you can attach code so the guide contains both instructions and copy-paste snippets.

So the same events you build and save in the Server-side section can be injected into a guide step as server-side code, client-side gtag, or a single event.

When you export the guide to Markdown, steps that have code get a fenced code block (```) containing the resolved code (bespoke or generated).

10.3 Reordering steps

Each step has (Move up) and (Move down). Use them to reorder; step numbers update automatically. Order is saved with the guide.

10.4 Templates and export

10.5 AI Assist

AI Assist uses OpenAI to speed up requirements gathering and guide generation. Requires Supabase, the ai-assist Edge Function, and OPENAI_API_KEY in Supabase Edge Function secrets.

Requirements extraction (Project panel → “AI: Extract requirements”): Paste or import text (e.g. from Google Docs Published to web, GitHub raw, Pastebin, Notion). AI extracts objectives, KPIs, events (GA4-style), stakeholders, timeline, project notes, and structured measurement framework rows (objective, key metric, events, params, priority per row). Apply to project populates the project and framework grid; when the framework already has rows, new framework rows are merged in (duplicates skipped). Falls back to adding events as a single row if framework rows are not returned.

Gap-to-guide (Implementation Guides → “Generate from gaps”): Uses your Measurement Framework, GTM import, and project context. Computes missing events (framework events not found in GTM) and generates a bespoke implementation guide focused on filling those gaps.

Cost control: Input/output limits apply (e.g. 25k chars for extract, 30 framework rows, 4k tokens for extract, 4k for guide).


11. GTM Integration

The GTM Integration section connects your Blueprint project with Google Tag Manager so you can analyze an existing container or generate one from your project.

Use GTM Integration to audit a client’s live container against your plan, or to export a clean GTM setup from Blueprint into GTM.


12. Testing & Validation

This section provides a validation checklist and test suite for cross-domain and GA4:

It’s the “did we implement it correctly?” companion to the Implementation Checklist.


13. Implementation Checklist

The Implementation Checklist is a progress list for a single implementation: Pre-implementation → GTM Setup → Configuration → Testing → Validation → Documentation.

So: use the checklist to track progress; use guides for the actual steps and code.


14. Stakeholder Interviews

The Stakeholder Interviews section helps you run and document stakeholder interviews per project.


15. Snippet Library

The Snippet Library holds reusable code snippets (GA4, GTM, cross-domain, server-side, consent, etc.) with tags for filtering.


16. Valued Resources

Valued Resources is a curated list of links (official GA4/GTM docs, testing tools, events reference, best-practice sites) grouped into sections.


17. Export deliverable and Backup & restore

Export deliverable

From the Project panel, Export deliverable opens a modal where you choose sections to include: cover, table of contents, implementation guide, framework grid, checklist, and project notes. You can Download HTML (open in Word or print to PDF) or Print / Save as PDF directly. Useful for client handoffs.

Backup & restore

In Account, the Backup & restore card provides:


18. Events: server-side and client-side

The same event definition (event name + parameters) can be used in two ways:

  1. Server-side (Measurement Protocol) – Your backend (or proxy) sends a POST to GA4 mp/collect with client_id and events. The app generates sendToGA4(clientId, events) and injects saved events into the full snippet.
  2. Client-side (gtag) – In the browser, with gtag loaded (e.g. via GA4 config tag), you fire gtag('event', eventName, params). The app can output the same event as a gtag call.

So the events you build in the event builder and save are reusable:

In Implementation Guides, when you add code to a step:

So: one set of events, consistent naming and params, and the app gives you both server and client code.


19. Pricing, Account, Contact, Admin


20. Auth, sync, and limits


21. Technical setup

For running locally, deploying (e.g. Vercel), Supabase (migrations, auth, RLS), Stripe (Checkout, webhook, billing portal), and admin email (Brevo), see the main README.md in the repo. It covers:


This guide describes Blueprint as of the latest implementation: projects, cross-domain, installation, configurations, server-side event builder and saved events, measurement framework, implementation guides (with per-step code and reordering), GTM Integration (import container, framework comparison, export to GTM), implementation checklist, stakeholder interviews, snippet library, valued resources, export deliverable, backup & restore, admin theme style, and dual output of events (server-side MP and client-side gtag). For a shorter quick-start and common tasks, see USER_GUIDE.md.