1.0.2 • Published 6 years ago

@source4society/react-scepter-mobile-gtm-component v1.0.2

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
6 years ago

react-scepter-mobile-gtm-component

A simple Google Tag Manager component for react-native

scepter-logo

redux-logo

react-boilerplate

airbnb-codestyle

Build Status

codecov

Installation

npm install @source4society/react-scepter-web-gtm-component

or

yarn add @source4society/react-scepter-web-gtm-component

Then you must remember to run react-native link react-native-google-analytics-bridge (see react-native-google-anlytics-bridge for more information)

Usage

Add this component to your mobile application to load a GTM container on mount. Example usage:

  <GTMComponent containerId={'GTM-XXXXXXX'} />

where containerId is the ID of your GTM container. You will then be able to make subsequent calls with the static GoogleTagManager object from react-native-google-analytics-bridge;