This example requires a hypothetical event model where pageviews are tracked with a type or category property, such as "homepage" or "article", so that views can be counted for each category.
If you haven’t done so already, login to Keen IO to create a project for your app. The Project ID and API Keys are available on the Project Overview page.