addGlobalContexts method

Future<void> addGlobalContexts(
  1. String tag,
  2. SelfDescribing context
)

Adds a global context with the given tag to be attached to all tracked events.

Implementation

Future<void> addGlobalContexts(String tag, SelfDescribing context) async {
  await Snowplow.addGlobalContexts(tag, context, tracker: namespace);
}