event_type
, which you can call whatever you'd like. The second argument is any data you want to pass in (up to 1,000 key-value pairs).count
is a preserved keyword and will determine how much the counter for this event type and user increments because of this event. In most cases, you will not need to pass this in.index.js
. We'll be tracking a single page view: