npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-gtm

v1.0.9

Published

Node N8N to interact with Google Tag Manager

Readme

n8n-nodes-gtm

This is an n8n community node. It lets you interact with Google Tag Manager (GTM) in your n8n workflows.

Google Tag Manager is a tag management system that allows users to quickly and easily update tags and code snippets on their websites or mobile apps.

n8n is a fair-code licensed workflow automation platform.

Installation
Credentials
Operations
Using as a Tool
Compatibility
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Alternatively, you can manually install it:

git clone https://github.com/elevate-agency-data/n8n-nodes-gtm.git 
cd n8n-nodes-gtm 
npm install  

Then, place the node file in the ~/.n8n/custom-nodes directory (or follow instructions specific to your n8n installation).

Credentials

To use this node, you need a Google Cloud API key with access to Google Tag Manager.

Operations

This node supports the following operations within Google Tag Manager:

  • Account
    • Gets an account
    • List all accounts
    • Updates an account
  • Built-In Variable
    • Create a built-in variable
    • Delete a built-in variable
    • Lists all the enabled built-in variables
    • Reverts changes to a built-in variable
  • Client
    • Creates a client
    • Deletes a client
    • Gets a client
    • Lists all clients
    • Reverts changes to a client
    • Updates a client
  • Container
    • Combines containers
    • Creates a container
    • Deletes a container
    • Gets a container
    • Lists all containers
    • Looks up a container
    • Move tag ID out of a container
    • Gets the tagging snippet for a container
    • Updates a container
  • Destination
    • Gets a destination
    • Adds a destination
    • Lists all destinations
  • Environment
    • Creates an environment
    • Deletes an environment
    • Gets an environment
    • Lists all environments
    • Re-generates the authorization code for an environment
    • Updates an environment
  • Folder
    • Creates a folder
    • Deletes a folder
    • List all entities in a folder
    • Gets a folder
    • Lists all folders
    • Moves entities to a folder
    • Reverts changes to a folder
    • Updates a folder
  • Google Tag Configuration
    • Creates a google tag config
    • Deletes a google tag config
    • Gets a google tag config
    • Lists all google tag configs
    • Updates a google tag config
  • Tag
    • Creates a tag
    • Deletes a tag
    • Gets a tag
    • Lists all tags
    • Reverts changes to a tag
    • Updates a tag
  • Template
    • Creates a custom template
    • Deletes a template
    • Gets a template
    • Imports a template from gallery
    • Lists all templates
    • Reverts changes to a template
    • Updates a templates
  • Transformation
    • Creates a transformation
    • Deletes a transformation
    • Gets a transformation
    • Lists all transformations
    • Reverts changes to a transformation
    • Updates a transformation
  • Trigger
    • Creates a trigger
    • Deletes a trigger
    • Gets a trigger
    • Lists all triggers
    • Reverts changes to a trigger
    • Updates a trigger
  • User Permission
    • Creates a user's permissions
    • Remove a user's permissions
    • Gets a user's permissions
    • Lists all users that have access
    • Updates a user's permissions
  • Variable
    • Creates a variable
    • Deletes a variable
    • Gets a variable
    • Lists all variables
    • Reverts changes to a variable
    • Updates a variable
  • Version Header
    • Gets the latest container version header
    • Lists all container versions
  • Version
    • Deletes a version
    • Gets a version
    • Gets the live version
    • Publishes a version
    • Sets the latest versions
    • Undeletes a version
    • Updates a version
  • Workspace
    • Creates a workspace
    • Creates a container version from the entities present in the workspace
    • Deletes a workspace
    • Finds conflicting and modified entities in the workspace
    • Gets a workspace
    • Lists all workspaces
    • Quick previews a workspace
    • Resolves a merge conflict for a workspace entity
    • Syncs a workspace to the latest container version
    • Updates a workspace
  • Zone
    • Creates a zone
    • Deletes a zone
    • Gets a zone
    • Lists all zones
    • Reverts changes to a zone
    • Updates a zone

Retrieve information from the GTM API.

Steps to obtain API credentials:

  1. Go to the Google Cloud Console
  2. Create a new project or use an existing one
  3. Enable the Google Tag Manager API
  4. Create API credentials (API key or OAuth 2.0)
  5. Add your API key to the authentication settings in n8n

Using as a Tool

This node can be used as a tool in n8n AI Agents. To enable community nodes as tools, you need to set the N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE environment variable to true.

Setting the Environment Variable

If you're using a bash/zsh shell:

export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
n8n start

If you're using Docker: Add to your docker-compose.yml file:

environment:
  - N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

If you're using the desktop app: Create a .env file in the n8n directory:

N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

If you want to set it permanently on Mac/Linux: Add to your ~/.zshrc or ~/.bash_profile:

export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

Compatibility

  • Tested with: 1.80.5 (Success)

Resources