Skip to content
R

react-gtm-module

React Google Tag Manager Module

by alinemorelliFree

#135in UI Libraries
0In stores

Description

react-gtm-module is a JavaScript module for React apps that load Google Tag Manager. It is designed to work with the standard GTM snippet, a…

Highlights

  • Loads Google Tag Manager in React apps
  • Custom and multiple dataLayers
  • Extra events such as gtm.start
  • Tag Manager environments with auth and preview
  • Installed from npm

Ratings & Reviews

No ratings yet

Be the first to rate react-gtm-module.

People also visit

S

@sooro-io/react-gtm-module

React Google Tag Manager Module

UI Libraries
Launch
R

react-google-recaptcha

React Component Wrapper for Google reCAPTCHA

UI Libraries
Launch
R

react-yandex-metrika

Yandex Metrika component for React

UI Libraries
Launch
R

react-dfp

A React implementation of the google

UI Libraries
Launch
R

react-recaptcha

A react.js reCAPTCHA for Google

UI Libraries
Launch
R

@react-google-maps/api

React.js Google Maps API integration

UI Libraries
Launch

react-gtm-module FAQ

What does react-gtm-module do?

It loads Google Tag Manager in a React app using the standard GTM snippet, and lets you push custom data and events.

Where do I find the auth and preview values?

In Google Tag Manager, go to Admin, then Environments, then Actions and Get Snippet. The gtm_auth and gtm_preview values are there.

Can I use several dataLayers?

Yes. You can initialise the module in different components with different dataLayers and send data from each page.

Does it need a GTM ID?

Yes. gtmId is required and looks like GTM-000000.

Is it free?

The source is public on GitHub, so the module is open source.

What are the best react-gtm-module alternatives?

Popular alternatives to react-gtm-module include @sooro-io/react-gtm-module, react-google-recaptcha and react-yandex-metrika. See all react-gtm-module alternatives

Developer Stuff

Badges