Skip to main content

πŸ’‘ Getting Started with HTML/CSS/JS

Trakg works out of the box with any static or dynamic website built using plain HTML, CSS, and JavaScript. Just add the following script before the closing </body> tag in your main HTML file:
πŸ” Replace YOUR_ID_GIVEN with the unique Site ID from your Trakg Dashboard.

πŸ“ Example: index.html

πŸ›‘ Best Practices

βœ… Use defer to ensure the script loads after HTML is parsed
βœ… Keep the script at the end of the <body> for best performance
βœ… Works with any form using native form, input, textarea, or select tags
βœ… No need for extra configuration or dependencies

πŸš€ You’re Ready!

Once the script is added, Trakg will automatically:
  • Track user interactions on your forms
  • Capture partially filled form data
  • Log completed submissions
  • Show real-time analytics in your Trakg dashboard
Need help? Contact Support