Use next/script in your root layout. The script is about 6 KB gzipped and loads asynchronously, so it won't hold up your pages.
Create a free account, then add your site in the dashboard. It shows the snippet below with your own tracking ID filled in; the ID here is only an example.
// app/layout.tsx (App Router)
import Script from 'next/script';
// inside <body> of the root layout:
<Script src="https://api.thravic.com/tf.js" data-tracking-id="TF-1A2B3C4D" strategy="afterInteractive" />Data appears within a few minutes of your first visitor. Form inputs are masked in the browser before anything is sent.
WordPress · Shopify · Wix · Squarespace · Webflow · Framer · Ghost · Carrd · Bubble · Blogger · Joomla · Drupal · Tag Manager · AI agent · Other / HTML · React Native and Expo