Step-by-step guides to install EazyStats tracking code on your platform
Lovable creates websites through prompts. You'll need to ask Lovable's AI to add the tracking script for you.
Before prompting Lovable, go to your EazyStats dashboard to find your details.
The standard script looks like this (you will need the ID and Domain):
<script
defer="" data-website-id="your_website_id" data-site-domain="yourdomain.com" src="https://eazystats.com/tracker.js"
> </script>Copy the prompt template below, replace the placeholders with your actual Website ID and Domain, then paste it into Lovable's chat:
Please add EazyStats analytics tracking to my website. I need this script to load on every page of the website. **If using raw HTML:** Add this script tag to the <head> section of every page: <script defer data-website-id="⚠️>>> REPLACE WITH YOUR WEBSITE ID <<<⚠️" data-site-domain="⚠️>>> REPLACE WITH YOUR DOMAIN <<<⚠️" src="https://eazystats.com/tracker.js" ></script> **If using React, Next.js, or similar frameworks:** Add the appropriate script component to load on every page. For example: - Next.js: Use the Script component from 'next/script' in the root layout - React: Add the script to the index.html or use useEffect to load it dynamically - Vite: Add to the index.html in the public folder Please use the method that's appropriate for the framework you're building my website with, and confirm what approach you used and that the tracking will work on all pages.
After Lovable confirms the implementation:
If analytics data isn't appearing, ask Lovable to double-check using this follow-up prompt: