Bolt.new is fast. You describe what you want, it builds a working app, and you deploy to Netlify in minutes. But your deployed site has no analytics. You are shipping blind.
Adding Google Analytics means dealing with cookies, consent banners, and a complex dashboard for a site that might get 50 visitors a day. Here is a simpler approach.
Add one script tag to your Bolt.new project. OperatorStack tracks page views, unique visitors, referral sources, and conversion rates without cookies. No consent banner needed. Setup takes two minutes.
What You Get
With one line of HTML, your Bolt.new site starts tracking:
- Page views per page, per day
- Unique visitors without cookies or fingerprinting
- Referral sources (direct, search, social, specific domains)
- Device and browser breakdown
- Conversion rates if you add a waitlist or form
All of this shows up in a clean dashboard. No GA4 learning curve.
Setup
Create an OperatorStack project. Sign up at OperatorStack, create a project, and enter your Bolt.new site's deployed URL (the Netlify URL or your custom domain).
Add the script tag. In your Bolt.new project, open index.html and paste this before </head>:
<script src="https://operatorstack.dev/os.js" data-project="pk_your_key"></script>
You can also prompt Bolt: "Add this script tag to the head of my index.html" and paste the snippet.
Deploy. Click deploy in Bolt.new. Your site goes to Netlify with analytics active. Visit your site, then check the OperatorStack dashboard. You should see your visit within seconds.
That is the entire setup. No configuration file, no environment variables, no API key rotation.
What Makes This Different from Google Analytics
| Google Analytics | OperatorStack | |
|---|---|---|
| Uses cookies | Yes | No |
| Needs consent banner | Yes (EU law) | No |
| Visitor data accuracy | Loses 10-30% from opt-outs | Tracks all visitors |
| Script size | ~45KB | ~13KB |
| Setup time | 10-15 minutes + consent config | 2 minutes |
| Dashboard complexity | High (GA4 learning curve) | Simple |
| Cost | Free (complexity cost) | Free tier |
If you target EU visitors and use Google Analytics, you are legally required to show a cookie consent banner. Studies show 10-30% of visitors bounce or decline cookies, which means your analytics undercount the traffic that matters most.
Tracking Custom Events
Page views are automatic. If you want to track specific interactions, use the SDK:
// Track a button click
document.querySelector("#cta-button").addEventListener("click", () => {
OperatorStack.trackEvent("cta_click");
});
Custom events appear in your analytics dashboard alongside page view data.
Adding a Waitlist or Form
Since the script tag is already on your page, adding a waitlist or contact form takes one more line:
<!-- Waitlist signup -->
<div data-os-widget="waitlist"></div>
<!-- Or a contact form -->
<div data-os-widget="contact"></div>
Signups and form submissions automatically show up as contacts in your dashboard. Your analytics conversion rate updates to reflect signups divided by unique visitors. No extra tools needed.
If you are building a landing page with Bolt.new, add both the analytics script and a waitlist widget from the start. You will have traffic data and signups from day one, all in one dashboard.
How Cookie-Free Tracking Works
OperatorStack creates a privacy-friendly visitor ID using a hash of the visitor's IP and user agent. This ID does not persist across days, cannot be used to track individuals across sites, and does not require consent under GDPR. You get accurate aggregate data (page views, unique visitors, sources) without storing personal data.
For more details, see the privacy-friendly analytics guide.
Frequently Asked Questions
Does this work with Bolt.new's deployment?
Yes. Bolt.new deploys to Netlify. The OperatorStack script tag loads from our CDN and works on any hosting provider.
Why not just use Google Analytics?
Google Analytics requires cookies, which means you need a consent banner. Consent banners reduce conversions by 10-30%. For a pre-launch page where every visitor matters, that is a steep price. OperatorStack's analytics are cookie-free and do not require any consent banner.
Can I track custom events, not just page views?
Yes. Use OperatorStack.trackEvent('event_name') to track custom interactions like button clicks, video plays, or scroll depth milestones.
What about ad blockers?
Some ad blockers block Google Analytics but not OperatorStack. Because OperatorStack does not use cookies or fingerprinting, it is not on most blocklists. You will see more accurate visitor counts than with GA.