Skip to content

Custom properties for events

Add extra details (properties) when you send an event, for example for goals and ecommerce.

puremetrix('purchase', { props: { amount: 49, currency: 'EUR' } });

Keep event and property names the same over time. Create a goal for the event under Goals, and see the breakdown by property on the properties dashboard.

Verify

  • Open https://app.puremetrix.org and check that the menus and buttons match this guide.
  • After changing the tracking code, open your site in a private browser window and check that the visit shows up in Realtime.
  • If numbers look wrong, check the domain and public key, the Free plan limit, and your bot and user-role exclusions.

Related