Install
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.zipNo 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.