Transforming page views into pipeline with B2B-focused analytics
Generate custom JavaScript tracking code for high-value actions on your website
Fill out the form above with your tracking events. For each event:
After clicking "Generate", add the script to your website:
<!-- Replace your existing FunnelFuel tracking code with this enhanced version -->
<script src="path/to/hva_tracking.js"></script>
Important: This script includes the FunnelFuel base tracking code. Remove any existing FunnelFuel tracking to avoid conflicts.
For events with Auto-Track disabled, trigger manually:
// Example: Track button click
document.getElementById('signup-btn').addEventListener('click', function() {
trackEvent1(); // Calls your first event
});
// Example: Track form submission
document.getElementById('contact-form').addEventListener('submit', function() {
trackFormSubmission('Contact Form', []);
});
Enable Testing Mode for debugging:
<!-- Option 1: Standard Function Call -->
<form id="contact-form" onsubmit="trackEvent1(); return true;">
<!-- form fields -->
<button type="submit">Submit</button>
</form>
<!-- Option 2: Google Sheets HVA Syntax (Automatically Mapped) -->
<script>
// Your Contact Form Example:
window.dispatchEvent(new CustomEvent("ANALYTICS.HVA", {detail: {
type: 'hva.formsubmit',
formName: 'contact-us-form',
parentPage: 'form_start:Contact Us:Website',
assetId: 'ff-contact-001',
assetType: 'leadform',
assetTitle: 'Contact Us – FunnelFuel',
emid: email,
pp: 'standard:blind-submit:soft-gate:post'
}}));
// Maps to: Category="Lead Forms", Action="Form Submitted",
// Label="Contact Us – FunnelFuel | ID:ff-contact-001 | Form:contact-us-form | Gate:soft-gate"
</script>
<button onclick="trackEvent1();">
Start Free Trial
</button>
<!-- Or with addEventListener -->
<script>
document.getElementById('trial-btn').addEventListener('click', function() {
trackEvent1();
});
</script>
<!-- Note: HVA script includes FunnelFuel base tracking -->
<a href="brochure.pdf" onclick="trackEvent1();">
Download Brochure
</a>
<!-- Or auto-track all PDF downloads -->
<script>
document.querySelectorAll('a[href$=".pdf"]').forEach(link => {
link.addEventListener('click', () => trackEvent1());
});
</script>
ANALYTICS.HVA
CustomEvent format with intelligent mapping:
type
+ assetType
(e.g., "Forms", "Lead Forms", "Whitepapers")type
(e.g., "Form Submitted", "Asset Downloaded")assetTitle | ID | Form | Gate
details