Tracking event values
You can pass a numeric value with any custom event to track things like revenue, lead worth, or customer lifetime value.
Syntax
gmTrackEvent('event_name', { value: 5000 });
The value field accepts integers only. Use cents to represent monetary values — for example, 5000 represents $50.00.
Example use cases
Tracking purchases
Track the revenue from each sale by passing the order total as the event value:
gmTrackEvent('Purchase', { value: 7999 });
This tracks a purchase worth $79.99.
Tracking lead values
Assign a known value to high-intent actions. For example, if a consulting inquiry is worth an average of $500:
gmTrackEvent('Consulting Inquiry', { value: 50000 });
Tracking customer lifetime value
Track the value of a new signup based on your average customer LTV. For example, if a new subscriber is worth $120:
gmTrackEvent('New Subscriber', { value: 12000 });
Notes
- The
valuefield must be an integer. Decimal values are not supported. - Use cents for monetary values (e.g.,
5000= $50.00,99= $0.99). - You can view event values in your GoodMetrics dashboard alongside event counts.