FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

PresideCMS Extension: Google Tag Manager

v1.1.9+0000004 Public

Google Tag Manager for Preside

This extension is for installing configuration for adding Google Tag Manager (GTM) scripts to the HEAD and BODY sections of the required layout templates as per the instructions in GTM.

Installation

From a commandline at the root of your application:

box install preside-ext-google-tag-manager

Configuration

Once installed, login to the Preside admin and head to System -> Settings -> Google Tag Manager and enter the snippets from the instructions section in Google Tag Manager Admin -> Container -> install Google Tag Manager .

Usage

The extension will take care of inserting the Google Tag manager "snippets" into your layout automatically for you, you won't need to do anything else. However, you can customize the layouts that are effected.

To customize the layouts, set the settings.googleTagManager.layouts variable in your Config.cfc:

settings.googleTagManager.layouts = [ "main", "newsletter" ]; // default is [ "main" ]

Note

If you're using the Google Analytics extension, please ensure this is removed or the configuration for the tracking ID is removed to help prevent double tags/events being fired.

Contributing and roadmap

Pull requests, issues and ideas are all welcome :) Please get in touch with the Preside team on our Preside Slack.

Dependencies (0)


Dev Dependencies (0)


Changelog

v1.1.9

  • Remove asset building from build script

v1.1.8

  • Migrate build to GitHub Actions

v1.1.7

  • Increasing the text limit on both form fields to allow for bigger scripts

v1.1.6

  • Allow for the possibility of one or more comment tags inside the opening <body> tag

v1.1.5

  • Removing local asset preprocessing, not required

v1.1.4

  • Completing move to GitHub, including ensuring the build script is executable and the ChangeLog is recognised by ForgeBox

v1.1.3

  • Relocating repo to Pixl8 GitHub account

v1.1.2

  • Publishing to Forgebox, opensource

v1.1.1

  • Bug fix - missing commas

v1.1.0

  • Original build - completed

v1.0.0

  • Original build

 

$ box install preside-ext-google-tag-manager

   
  • {{ getFullDate("Jul 23 2021 01:07 PM GMT") }}
  • {{ getFullDate("Jul 23 2021 01:07 PM GMT") }}
  • 845
  • 683
  • 17,968