2.0.6-alpha.0 • Published 2 years ago

@trinitymirrordigital/cue-webpack-google-tag-manager-plugin v2.0.6-alpha.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
2 years ago

@trinitymirrordigital/cue-webpack-google-tag-manager-plugin

This is a fixed version of Webpack Google Tag Manager Plugin for Reach projects

Installation

  yarn add --dev @trinitymirrordigital/cue-webpack-google-tag-manager-plugin
  npm i --save-dev @trinitymirrordigital/cue-webpack-google-tag-manager-plugin

Examples

Webpack basic configuration for setting up the plugin

import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import GoogleTagManagerPlugin from '@trinitymirrordigital/cue-webpack-google-tag-manager-plugin'

module.exports = {
    ...
    plugins: [
        new HtmlWebpackPlugin({
          ...
        }),
        new GoogleTagManagerPlugin({
            id: 'your-container-id',
        }),
    ],
}

Webpack configuration for making use of your environments

import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import GoogleTagManagerPlugin from '@trinitymirrordigital/cue-webpack-google-tag-manager-plugin'

module.exports = {
    ...
    plugins: [
        new HtmlWebpackPlugin({
          ...
        }),
        new GoogleTagManagerPlugin({
            id: 'your-container-id',
            auth: 'your-auth-value',
            preview: 'your-environment-value',
        }),
    ],
}

Copyright (c) 2022 "Reach Shared Services Ltd"

2.0.6-alpha.0

2 years ago

1.1.12-alpha.0

2 years ago

1.1.12

2 years ago

1.1.11-alpha.0

2 years ago

1.1.9

2 years ago

1.1.7

2 years ago

1.1.6

3 years ago

1.1.6-alpha.0

3 years ago

1.0.1

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.0.0

3 years ago

0.1.4-alpha.0

3 years ago

0.1.5-alpha.0

3 years ago

0.1.6-alpha.0

3 years ago

0.1.3

3 years ago

0.0.1

3 years ago