Bolt
How to add Faurya to your Bolt AI-generated application.
Add Faurya to your Bolt application
Bolt creates full-stack applications using AI prompts. Since the platform generates code automatically, you'll need to instruct Bolt's AI to integrate the Faurya tracking script into your project.
Step 1: Gather your tracking information
Navigate to your Faurya website settings and copy your Website ID and domain name.
Image coming soon
Website settings guide
You'll find this information in your Faurya tracking script:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="yourdomain.com"
src="https://faurya.com/js/script.js"
></script>Step 2: Use this AI prompt in Bolt
Copy the template below, fill in your tracking details, and send it to Bolt:
I need to integrate Faurya analytics into my application. Please implement tracking that works across all pages of my app.
Add this analytics script to my project:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="yourdomain.com"
src="https://faurya.com/js/script.js"
></script>
Implementation guidelines:
- For React/Next.js apps: Add the Script component to the root layout or _app.js
- For vanilla HTML apps: Include in the <head> section of all pages
- For Vue/Nuxt apps: Add to the app.vue or nuxt.config.js
- Ensure the script loads on every route and page
- Maintain the "defer" attribute for optimal performance
Please confirm the implementation method you used and verify that analytics will track across all pages of the application.Step 3: Confirm implementation
After Bolt implements the changes:
- Test the preview — Use Bolt's preview feature to check your app
- Deploy your project — Use Bolt's deployment options (Netlify, Vercel, etc.)
- Monitor your dashboard — Check your Faurya dashboard for incoming traffic data
For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.
Troubleshooting
If you don't see analytics data, use this follow-up prompt:
Can you verify the Faurya analytics implementation? Please check:
1. Which framework/structure did you use for my app?
2. Where exactly did you place the analytics script?
3. Will it load on all routes and pages?
4. Can you show me the implementation?
The script should load: https://faurya.com/js/script.js
Using my website ID: YOUR_WEBSITE_ID
If there's an issue, please fix it using the appropriate method for my app's framework.Common problems:
- Analytics only tracking on landing page
- Script not included in the build process
- Missing or incorrect tracking parameters
- Bolt hasn't deployed the latest changes
Need assistance?
Contact us at team@faurya.com if you need help with your Bolt integration.