Home
Credentials Generator
Generate credentials My generated credentials
QA Analytics
Analytics workspace Tracking integrations Analytics reports User Journey Explorer Conversion funnels Analytics debugger
More
Documentation Pricing Contact Us
LoginCreate free account
Please log in to continue.
Docs › QA Analytics

How to create custom events

Send any business event with one line of JavaScript:

window.QARandom.track("purchase", {
  product_name: "Product A",
  category: "Software",
  value: 99
});

Parameters

  • Up to 25 parameters per event; strings are trimmed to 200 characters; numbers and booleans are kept.
  • A numeric value is summed and averaged in the Custom Events report.
  • Parameter names that look sensitive (password, token, card, email, phone…) are dropped automatically, and email addresses or long numbers inside text are redacted.

Conversion events

QARandom.conversion("signup", 0, { plan: "pro" });
// or
QARandom.track("lead", { conversion: true });

You can also list event names under Conversion events in the site settings (default: form_submit_success).

Custom page names

<meta name="qar-page-name" content="Checkout – Step 2">
<!-- or -->
<script>QARandom.setPageName("Checkout – Step 2");</script>

Calling before the script loads

window.QARandom = window.QARandom || { q: [] };
QARandom.q.push(["track", "early_event", { source: "inline" }]);

Consent

QARandom.consent(true);   // visitor accepted analytics
QARandom.consent(false);  // visitor declined: stops tracking and clears IDs