What You Are Actually Building
The goal is to track visitor behavior on your Replit site. When this is done, you will have Google Analytics tracking active on your site showing real-time visitors, traffic sources, and page views. Non-technical builders complete this in Replit using Claude to write all the code — you describe what you want, Claude builds it, you test it and describe any fixes.
Google Analytics tracks who visits your site and what they do. Here is exactly how to add it to a Replit app in under 15 minutes.
What You Need First
- A Replit account (free tier is enough to start)
- A Google Analytics 4 account
- Your GA4 Measurement ID
You do not need to write any code. Claude handles all of it. Your job is to describe outcomes clearly and test what gets built.
How to Describe It to Claude
The most common mistake non-technical builders make is describing what they want at too high a level. "Add a database" is not specific enough. Claude needs to know: what data will be stored, what triggers the storage, who can access it, and what the data should look like when displayed back.
Start with the outcome, not the feature. Instead of "I need authentication," say "I need users to enter their email address, receive a six-digit verification code, and use that code to access a protected page at /dashboard."
Once Claude builds the first version, test it yourself. If something is wrong, describe the problem in plain language — what you expected to happen versus what actually happened. Claude fixes it. Repeat until it works correctly.
What the Working Version Looks Like
A correctly built version will have Google Analytics tracking active on your site showing real-time visitors, traffic sources, and page views. Run through the full user flow yourself before considering it done: create a test account, submit a test form, or make a test payment depending on what you built. If something breaks during your test, that is normal — paste the error message into Claude and describe what you were trying to do.
Common Mistakes and How to Fix Them
- Describing too much at once — build one piece at a time, test it, then add the next
- Trying to fix code directly instead of describing the problem to Claude in plain English
- Not testing the full user flow — always go through every step a real user would take
- Forgetting to set environment variables for API keys — never paste keys directly into code
- Assuming it is broken when it just needs a page refresh or browser cache cleared