Adding support for tracking pageviews and attribute views