trackPage

abstract fun trackPage(eventProperties: EventProperties? = null, title: String? = null, url: Uri? = null, referrer: Uri? = null): PageTracker

Create a page tracker object with the given context & properties. A PageTracker object will automatically track a Pageview and PageviewComplete events upon creation and closing of the PageTracker object.

You should retain the PageTracker object until the page has finished viewing, and then call close once completed.