Objectiv Documentation LogoObjectiv Documentation Logo
TrackingModelingTaxonomy
GitHubSlackTwitterObjectiv.io
  • Introduction
  • Tracker SDKs
  • Anonymous Tracking
  • Locations
  • Validation
  • React SDK
    • How-to-Guides
    • API Reference
      • ReactTracker
      • Providers
        • LocationProvider
        • LocationProviderContext
        • ObjectivProvider
        • ObjectivProviderContext
        • TrackerProvider
        • TrackerProviderContext
        • TrackingContext
        • TrackingContextProvider
      • Tracked Elements
      • Tracked HOCs
      • Location Wrappers
      • Event Trackers
      • Hooks
    • Plugins
  • React Native SDK
  • Browser SDK
  • Angular SDK
  • Testing
  • Collector
  • 🏠
  • Tracking
  • React SDK
  • API Reference
  • Providers
  • TrackingContext

TrackingContext

A utility React Context combining TrackerProviderContext and LocationProviderContext.

type TrackingContext = TrackerProviderContext & LocationProviderContext;
tip

Use the useTrackingContext consumer hook to easily retrieve this Context.

info

ObjectivProvider, Location Wrappers, Tracked HOCs and Tracked Elements, all can provide TrackingContext via render-props to their children.


See also
  • ObjectivProvider
  • ObjectivProviderContext
  • TrackingContextProvider
  • LocationProvider
  • LocationProviderContext
  • TrackerProvider
  • TrackerProviderContext
  • Suggest an edit
  • Get help on Slack
  • Request feature or report issue
Previous
TrackerProviderContext
Next
TrackingContextProvider
  • Privacy Policy
  • Cookies
Copyright © 2022 Objectiv