6.0.1 • Published 4 years ago
@ta-interaktiv/react-gtm v6.0.1
Google Tag Manager React Component
Component to use Google Tag Manager on the page. This component should only be mounted when the GMT ID has be defined.
Installation
yarn add @ta-interaktiv/react-gtm
Usage
import React from 'react'
import { GoogleTagManager } from '@ta-interaktiv/react-gtm'
// more code ...
class YourComponent extends React.Component {
componentDidMount() {
// Get the Webseismo statistics object from Newsnet API here
// NOT ACTUAL IMPLEMENTATION!
this.setState({
gtmObject: data.statistics.gtm,
gtmId: data.gtmId
})
}
render() {
return (
<GoogleTagManager
gtmId={this.state.gtmId}
article_id="000"
{/* further properties ... */}
/>
)
}
}
Documentation
6.0.1
4 years ago
6.0.0
4 years ago
5.0.6-alpha.78
4 years ago
5.0.6
4 years ago
5.0.5
4 years ago
5.0.4
4 years ago
5.0.3
4 years ago
5.0.2
4 years ago
5.0.1
5 years ago
5.0.0
5 years ago
4.1.1
5 years ago
4.1.0
5 years ago
4.0.16
5 years ago
4.0.15
5 years ago
4.0.14
5 years ago
4.0.13
5 years ago
4.0.12
5 years ago
4.0.11
5 years ago
4.0.9
6 years ago
4.0.8
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.1.0-beta.083f3e70
6 years ago
4.0.0
6 years ago
3.0.4
6 years ago
3.0.3
6 years ago
3.0.2
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.1.1
7 years ago