Guide

Install EazyStats in 2 minutes

Step-by-step guides to install EazyStats tracking code on your platform

Lovable

LovableLovable Integration

Add EazyStats to your Lovable website

Lovable creates websites through prompts. You'll need to ask Lovable's AI to add the tracking script for you.

1

Get your EazyStats details

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):

codeTracking Script Format
<script
  defer=""  data-website-id="your_website_id"  data-site-domain="yourdomain.com"  src="https://eazystats.com/tracker.js"
> </script>
2

Copy and customize this prompt

Copy the prompt template below, replace the placeholders with your actual Website ID and Domain, then paste it into Lovable's chat:

Prompt for AI Builder
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.
3

Verify installation

After Lovable confirms the implementation:

  1. Publish your website using Lovable's publish feature.
  2. Visit your live site to trigger the first pageview.
  3. Check your dashboard on EazyStats for incoming data.
warning

Troubleshooting

If analytics data isn't appearing, ask Lovable to double-check using this follow-up prompt:

Can you please verify that the EazyStats tracking script is properly installed and will load on all pages? Please confirm: 1. What framework are you using for my website? 2. How did you implement the EazyStats tracking? 3. Can you show me where you added the script? 4. Will it load on every page, including future pages I create? The tracking should load this script: https://eazystats.com/tracker.js With my website ID: [YOUR_WEBSITE_ID] and domain: [YOUR_DOMAIN]