Documentation Index
Fetch the complete documentation index at: https://docs.trakg.com/llms.txt
Use this file to discover all available pages before exploring further.
Installing Trakg on WordPress
Trakg works seamlessly with WordPress. You can track form interactions and recover leads without modifying your forms or backend logic.Option 1: Add Script via Theme Settings (Recommended)
Most WordPress themes (like Astra, Hello, or Blocksy) allow you to insert custom scripts into the<head> or before the </body> tag.
- Log in to your WordPress Admin Panel
- Navigate to:
Appearance → Theme File Editor (or Customizer → Additional Scripts, depending on your theme) - Paste the following just before the closing
</body>tag:
YOUR_ID_GIVEN with your actual Site ID
You can find your Site ID in the Trakg Dashboard.
Option 2: Use a Plugin (If Theme Doesn’t Support Scripts)
If your WordPress theme does not allow inserting scripts directly, you can use a plugin like:Steps
- Install and activate one of the above plugins.
- Go to Settings → Insert Headers and Footers (or the plugin’s UI).
- Paste the Trakg script in the Footer section:
- Click Save.
Best Practices
- Use the
deferattribute for better performance - Place the script just before the closing
</body>tag - No need to wrap or modify your forms
- Works with native HTML forms and most WordPress form plugins (e.g., Contact Form 7, WPForms, Elementor)
You’re Ready!
Once the script is installed:- Trakg will automatically track form field interactions and clicks
- Partially filled data will be captured even without submission
- You can view leads, drop-offs, and analytics in your Trakg Dashboard
- Recover lost conversions easily