Method

initialize

static

initialize(config)

Parameter

config

Optional

Object

Values in config have the following properties:

Parameter

parameterOverrides

Optional

Object

Measurement Protocol parameters, expressed as key/value pairs, to be added to replayed Google Analytics requests. This can be used to, e.g., set a custom dimension indicating that the request was replayed.

hitFilter

Optional

function()

A function that allows you to modify the hit parameters prior to replaying the hit. The function is invoked with the original hit's URLSearchParams object as its only argument. To abort the hit and prevent it from being replayed, throw an error.