Lovable
How to add Faurya to your Lovable AI-built website.
Add Faurya to your Lovable website
Lovable is an AI website builder that creates websites through prompts. Since you don't write code directly, you'll need to ask Lovable's AI to add the Faurya tracking script for you.
Step 1: Get your Faurya details
Before prompting Lovable, go to your Faurya website settings and copy your Website ID and domain name.
Image coming soon
Website settings guide
Your tracking script should look like this:
<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 Lovable
Copy the template below, fill in your tracking details, and send it to Lovable:
I need to integrate Faurya analytics into my website. Please add this tracking script to the <head> section of every page:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="yourdomain.com"
src="https://faurya.com/js/script.js"
></script>
Please confirm where you've added it and that it will load on all pages.Step 3: Verify installation
After Lovable confirms the implementation:
- Publish your website — Use Lovable's publish feature (top right corner)
- Visit your live site — Once published, visit your actual website
- Check your dashboard — Go to your Faurya dashboard and look for incoming data (may take a few minutes)
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 data after publishing, try this follow-up prompt in Lovable:
Can you verify the Faurya analytics implementation? Please check:
1. Where exactly did you place the analytics script?
2. Will it load on all pages?
3. 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.Common problems:
- Lovable hasn't published the website yet
- Script was added to only one page instead of all pages
- Incorrect website ID or domain
Need help?
Contact us at team@faurya.com and we'll help you get set up.