HttpContext

HttpContext carries information about Referrer and User Agent.

This Plugin automatically retrieves the former from the Document and the latter from the Navigator.

Installation

Bundled with @objectiv/tracker-core and thus included by default in ReactTracker as well.

Implementation

Implements PluginInterface's initialize and enrich methods.

initialize

Creates a new instance of HttpContext and stores it in its internal state.

enrich

Adds the previously created HttpContext to the list of Global Contexts of the outgoing Event.

isUsable

True if both Document and Navigator interfaces are available.

Configuration

Can be disabled by setting ReactTracker's trackHttpContext parameter to false.

caution

Disabling this plugin implies providing your own implementation, as HttpContext is still required.