Analytics Integration

NeoSaaS supports integration with both Datafa.st and Google Analytics (GA) to give you powerful insights into user behavior and application performance.

Datafa.st

1
Go to Datafa.st and create an account.
https://datafa.st
2
Create a new project and copy your Website ID
3
Add it to your code

Add your project id to /app/layout.tsx

layout.tsx
    <Script
          data-website-id="YOUR_WEBSITE_ID"
          data-domain="YOUR_DOMAIN.COM"
          src="https://datafa.st/js/script.js"
          strategy="afterInteractive"
        /> 

Google Analytics

Google Analytics is a popular tool for detailed traffic and user engagement tracking.

1
Go to the Google Analytics Console
https://analytics.google.com
2
Create a new property for your project.
3
Copy your Measurement ID. It starts with `G-12345`.
4
Add it to your code

Add your project id to /app/layout.tsx

layout.tsx
<Script
  src="https://www.googletagmanager.com/gtag/js?id=G-7CX695C9QV"
  strategy="afterInteractive"
  />
<Script id="google-analytics" strategy="afterInteractive">
  {`
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-7CX695C9QV');
  `}
  </Script>