Add one script tag to start capturing events, click IDs, and attribution data. Works on any website -- no build step required.
Add this script tag to the <head> of every page you want to track. Replace YOUR_WORKSPACE_ID with your actual workspace ID from the dashboard.
<script
src="https://vortextrk.com/tf.js"
data-workspace="YOUR_WORKSPACE_ID"
async
></script>The async attribute ensures the script does not block page rendering. It loads in parallel and initializes automatically when ready.
The tracking script captures the following data automatically, with no additional configuration required.
Automatic page view tracking on every navigation. Captures URL, referrer, and time on page.
Automatically extracts fbclid, gclid, ttclid, and other click identifiers from URLs and stores them for attribution.
Preserves utm_source, utm_medium, utm_campaign, utm_term, and utm_content across the entire session.
Track any custom event with VTX.track(). Attach properties and metadata for full-funnel analysis.
Track any action with VTX.track(). Pass an event name and an optional properties object.
// Track a form submission
VTX.track("lead_submitted", {
email: "user@example.com",
name: "John Doe",
form_id: "contact-form",
page: window.location.pathname
});
// Track a button click
VTX.track("cta_clicked", {
button: "pricing-start-free",
section: "hero"
});
// Track a purchase
VTX.track("purchase", {
value: 99.00,
currency: "USD",
product_id: "pro-monthly"
});Associate tracked events with a known contact. Call VTX.identify() once you have user information (e.g., after form submission or login).
VTX.identify({
email: "user@example.com",
name: "John Doe",
phone: "+1234567890",
company: "Acme Corp"
});After calling identify, all subsequent events in the session will be attributed to this contact.
Instructions for common website platforms.
</head> tagAfter installing the script, verify it is working correctly.
// Quick verification in browser console
console.log("VTX loaded:", typeof VTX !== "undefined");
console.log("Workspace:", VTX?.config?.workspace);
console.log("Session ID:", VTX?.session?.id);Now that tracking is live, connect your ad platforms to start sending server-side conversions.