This project uses Google Analytics (GA4) to track user behavior and document generation.
Make sure you have set NEXT_PUBLIC_GA_ID in your environment variables with your Google Analytics measurement ID.
Event Name: wizard_start
Triggered when a user clicks a CTA to open the wizard (nav, hero, footer) or lands directly on /wizard.
Parameters:
source- Where the journey began (e.g.,hero_start_building,nav_get_started,direct_wizard)
Event Name: step_view
Triggered when a user navigates to a different wizard step.
Parameters:
step_number- The step number (1-4)step_name- The step name (ONE_PAGER, DEV_SPEC, PROMPT_PLAN, AGENTS_MD)
Event Name: step_approved
Triggered when a user approves a step (including finalization on step 4).
Parameters:
step_number- The step number (1-4)step_name- The approved step name
Event Name: chat_message
Triggered when a user submits a chat message (via Enter key or clicking the arrow button).
Parameters:
step_name- The name of the step where the message was sent
Event Name: document_generate
Triggered when a user generates a document (success or failure).
Parameters:
step_name- The name of the step/document being generatedsuccess- Boolean indicating if generation succeeded
Event Name: document_download
Triggered when a user downloads a single document.
Parameters:
step_name- The name of the document downloadeddownload_type- Always "individual"
Event Name: bulk_download
Triggered when a user downloads all documents as a ZIP file.
Parameters:
document_count- Number of documents included in the ZIPdownload_type- Always "zip"
Event Name: wizard_reset
Triggered when a user clicks the RESET button.
Event Name: wizard_complete
Triggered when a user finalizes the last step (clicks FINALIZE on step 4).
- Go to your Google Analytics dashboard
- Navigate to Reports → Engagement → Events
- You'll see all custom events listed there
- Click on any event to see detailed parameters and user engagement
With these events, you can answer questions like:
- Which wizard steps do users visit most?
- How engaged are users with the chat feature? (messages per step)
- How many documents are successfully generated vs. failed?
- Which documents are downloaded most frequently?
- How many users complete the entire wizard?
- What's the drop-off rate between steps?
- Which steps have the most user interaction?