ComScorePageView

data class ComScorePageView(val name: String, val labels: Map<String, String> = emptyMap())

Represents a page view event for ComScore.

This class encapsulates the data required to track a page view event, including the page name and custom labels.

Throws

Constructors

Link copied to clipboard
constructor(name: String, labels: Map<String, String> = emptyMap())

Properties

Link copied to clipboard

A map of custom labels to be associated with the page view event. Blank values are ignored and not sent. Defaults to an empty map.

Link copied to clipboard

The name of the page being viewed. This property cannot be blank.

Functions

Link copied to clipboard

Converts this object's properties into a Map of labels suitable for ComScore.