Methods
(inner) RGA4Provider(props) → {Component|Object}
- Source:
Context Provider used to set the Goggle Analytics Context.
Example
const App = () => {
return (
<RGA4Provider
code={'Measurement-ID'}
config={{ debug: true }}
>
<App />
</RGA4Provider>
)
}
export default App
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | RGA4 provider props Properties
|
Returns:
- RGA4Provider.Provider - Provides RGA4 Singleton to the consumer
- Type
- Component | Object