Event properties

Properties add context to a custom event. A numeric revenue property lets Gumanalytics total attributed revenue in the Events report.

Use descriptive properties

window.gum.track("purchase", { plan: "pro", billing_period: "monthly", revenue: 49 });

Keep property names stable and use values that explain the action. Good examples include plan, location, content_type, and billing_period. Do not include personal or sensitive data.

Attribute revenue

Revenue must be a number, not a formatted string such as $49. Choose one currency and one unit convention before comparing totals across events.

Related documentation