Skip to content

Commit

Permalink
Update reference to react-gtm-module and rename to react-gtm
Browse files Browse the repository at this point in the history
  • Loading branch information
DipakShrestha18 committed Jun 7, 2024
1 parent 9e558c2 commit 1ad9b3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![Build Status](https://img.shields.io/travis/alinemorelli/react-gtm/master.svg?style=flat-square)](https://travis-ci.org/alinemorelli/react-gtm)
[![npm version](https://img.shields.io/npm/v/react-gtm-module.svg?style=flat-square)](https://www.npmjs.com/package/react-gtm-module)
[![npm downloads](https://img.shields.io/npm/dm/react-gtm-module.svg?style=flat-square)](https://www.npmjs.com/package/react-gtm-module)
[![npm version](https://img.shields.io/npm/v/react-gtm.svg?style=flat-square)](https://www.npmjs.com/package/react-gtm)
[![npm downloads](https://img.shields.io/npm/dm/react-gtm.svg?style=flat-square)](https://www.npmjs.com/package/react-gtm)

# react-gtm-module
# react-gtm
### React Google Tag Manager Module

This is a Javascript module to [React](https://facebook.github.io/react/) based apps that implement Google Tag Manager. It is designed to use [GTM](https://developers.google.com/tag-manager/quickstart) snippet.
Expand All @@ -14,7 +14,7 @@ You can easily use custom dataLayer, multiple dataLayers and additional events.
[npm](https://www.npmjs.com/):

```bash
npm install react-gtm-module --save
npm install react-gtm --save
```

## Usage
Expand All @@ -28,7 +28,7 @@ import Router from 'react-router'
import routes from './routes'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
gtmId: 'GTM-000000'
Expand All @@ -53,7 +53,7 @@ import Router from 'react-router'
import routes from './routes'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
gtmId: 'GTM-000000',
Expand Down Expand Up @@ -85,7 +85,7 @@ import Router from 'react-router'
import routes from './routes'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
gtmId: 'GTM-000000',
Expand All @@ -106,7 +106,7 @@ And send your data in each page you want
import React from 'react'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
dataLayer: {
Expand Down Expand Up @@ -146,7 +146,7 @@ import Router from 'react-router'
import routes from './routes'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
gtmId: 'GTM-000000',
Expand Down Expand Up @@ -175,7 +175,7 @@ import Router from 'react-router'
import routes from './routes'

...
import TagManager from 'react-gtm-module'
import TagManager from 'react-gtm'

const tagManagerArgs = {
gtmId: 'GTM-000000',
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-gtm-module",
"name": "react-gtm",
"version": "2.0.11",
"description": "React Google Tag Manager Module",
"main": "dist/index.js",
Expand Down

0 comments on commit 1ad9b3e

Please sign in to comment.