Prerequisites
- A website must be created in your Trakg Dashboard.
- The tracking script must be correctly added to your website.
How It Works
- Once the tracking script is installed, simply submit a test (dummy) lead by filling out a form on your website.
- When the form is interacted with and a lead is captured, Trakg will automatically detect and create the form in your Forms Panel.
Identification
- Trakg uses the
<form>element’snameattribute (if present) to uniquely identify forms. - If
nameis not set, Trakg will use the form’s URL path and index. - We recommend using a
nameattribute on each form for better readability and management.
Important Notes
- Only
<input>,<textarea>,<select>, and other valid form elements inside a<form>tag are captured. - Avoid using
<section>or<div>to wrap form fields if you want them tracked. Always use a proper<form>tag. - To uniquely identify a form in the dashboard, you can use either:
- the native
nameattribute:<form name="contact-form"> - or the custom
data-trakg-form-nameattribute:<form data-trakg-form-name="contact-form">
- the native