Install DataPocket on Lovable

Updated

Paste one prompt. Also works with Bolt, v0 and Replit. Sign in and these snippets fill in your site ID and domain. Until then, swap YOUR_SITE_ID and YOUR_DOMAIN with the values from your Install page.

  1. 1

    Paste this prompt into Lovable's chat:

    text
    Add this analytics script to the <head> of index.html exactly as written, without changing any attribute:
    
    <script
      defer
      data-site-id="YOUR_SITE_ID"
      data-domain="YOUR_DOMAIN"
      src="https://datapocket.vo1d.studio/js/script.js"
    ></script>
    
    The app uses client-side routing; do not add any extra pageview tracking code.
  2. 2

    Publish, then open your live site. The Install page turns green when the first visit arrives.

Related guides

Install DataPocket on Lovable · DataPocket