Events analytics

Fix Google Analytics pageview reporting, and make available to pages using custom domains.