webiny-app-google-tag-manager

1.0.2 • Public • Published

webiny-app-google-tag-manager

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.

Readme

Keywords

none

Package Sidebar

Install

npm i webiny-app-google-tag-manager

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

37.8 kB

Total Files

18

Last publish

Collaborators

  • webiny