← All docs

Rave.track()

Record purchases or engagement from a thank-you page without a webhook.

Put this after the pixel on a page that only buyers (or viewers) reach. Replace values with your platform's merge tags.

<script>
  window.Rave = window.Rave || { q: [], track: function () { window.Rave.q.push(arguments); } };
  Rave.track("purchase", { first_name: "Sarah", email: "sarah@example.com", city: "Austin", product: "Ultimate Pack", step: "main" });
</script>

Events: signup, registration, purchase, upsell, watched, attended, completed, custom. Add campaign: "CAMPAIGN_ID" to target one campaign; otherwise every live campaign on the site records it. RAVE™ validates the data, hashes the email and ignores duplicates.

Need help? Email support@cxformula.com.