@elbwalker/destination-web-google-gtm
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

Google Tag Manager (GTM) web destination for walkerOS

Made to be used with walker.js from walkerOS.

More detailed information and examples can be found in the documentation.

🤓 Usage

Start by setting up the config for the destination. Optional fields as comments. Destinations can be used via node or directly in the browser.

Configuration

Learn more about the destinations in general and read the detailled Google Tag Manager configuration.

const config = {
  custom: {
    containerId: "GTM-XXXXXXX",
    dataLayer: "dataLayer",
    domain: "https://www.googletagmanager.com/gtm.js?id=";
  },
};

Node usage

npm i --save @elbwalker/destination-web-google-gtm
import { elb } from '@elbwalker/walker.js';
import destinationGoogleGTM from '@elbwalker/destination-web-google-gtm';

elb('walker destination', destinationGoogleGTM, config);

Contribute

Feel free to contribute by submitting an issue, starting a discussion or getting in contact.

Package Sidebar

Install

npm i @elbwalker/destination-web-google-gtm

Weekly Downloads

42

Version

2.1.2

License

MIT

Unpacked Size

17.6 kB

Total Files

12

Last publish

Collaborators

  • alexanderkirtzel