WP Manifestindependent plugin directory
manifest / analytics / wp-gtm

FK Google Tag Manager

This plugin makes it even easier to use Google Tag Manager, adding all the code itself — all you need to do is provide the Account ID!

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/kudinovfedor/wp-gtm/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Google Tag Manager (GTM) plugin for Wordpress

Installation

Upload fk-google-tag-manager to the /wp-content/plugins/ directory

Activate the plugin through the 'Plugins' menu in WordPress

Usage

Add a hook do_action('wp_body') after opening tag <body>

<body>
<?php echo do_action('wp_body'); ?>
... other code

Go to Settings > General and set the ID from your Google Tag Manager account.

Use comma without space (,) to enter multiple IDs.