Users
Custom properties
You can associate custom properties with a user. This provides additional context and allows you to segment by properties to dig deeper in your user’s feedback data.
prodmetrics('user', {
externalId: user.id,
email: user.email,
name: user.name,
firstSeenAt: new Date(user.created).toISOString(),
company: user.company_name,
totalRevenue: user.invoices.reduce((acc, invoice) => acc + invoice.total, 0),
});