damjack / elm-newrelic-nreum / NewRelic.NREUM.AddPageAction

Reports a browser AddPageAction event to New Relic One along with a name and optional attributes. This API call sends a browser AddPageAction event with your user-defined name and optional attributes to dashboards, along with several default attributes. This is useful to track any event that is not already tracked automatically by the browser agent, such as clicking a Subscribe button or accessing a tutorial.

Configuration


type AddPageAction

AddPageAction type

Configuration Methods

init : String -> AddPageAction

Build Nreum AddPageAction with specific action name

Overlay Configuration

addAdditionalData : NewRelic.AdditionalData.AdditionalData -> AddPageAction -> AddPageAction

Add custom JSON data attributes to Nreum AddPageAction

Encoding

encode : AddPageAction -> Json.Encode.Value

Convert Nreum AddPageAction to JSON