Skip to content

Custom properties for pageviews

Add extra details to pageviews so you can break down your traffic by them (e.g. by customer plan).

<!-- first allow the properties in Site settings → Properties, then send them from your code -->
puremetrix('pageview', { props: { plan: 'growth' } });

Allow only a few properties with a limited set of values. Values that differ almost every time (like IDs) make the tables huge and hard to read.

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