1.0.2 • Published 5 years ago

webiny-app-google-tag-manager v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

webiny-app-google-tag-manager

npm.io npm.io code style: prettier PRs Welcome

Initializes Google Tag Manager (https://marketingplatform.google.com/about/tag-manager/) on your site.

Use together with webiny-api-google-tag-manager package.

Install

npm install --save webiny-app-google-tag-manager

Or if you prefer yarn:

yarn add webiny-app-google-tag-manager

Note: the webiny-api-google-tag-manager is also required.

Setup

To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation.

Admin

import gtmPlugins from "webiny-app-google-tag-manager/admin"
import { registerPlugins } from "webiny-plugins";

registerPlugins(gtmPlugins);

Enables management of GTM settings, which can be accessed via Settings section in the main menu. You will paste your GTM "Container ID" here (this is required in order for the integration to work properly).

Site

import gtmPlugins from "webiny-app-google-tag-manager/render"
import { registerPlugins } from "webiny-plugins";

registerPlugins(gtmPlugins);

Initializes Google Tag Manager on your site.