@webiny/app-google-tag-manager

5.2.1 • 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

Setup

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

Admin

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

plugins.register(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 { plugins } from "@webiny/plugins";
import gtmPlugins from "@webiny/app-google-tag-manager/render"

plugins.register(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

5.2.1

License

MIT

Unpacked Size

30.4 kB

Total Files

18

Last publish

Collaborators

  • webiny