Set up your account at the Google Tag Manager website. You’ll be asked to create a "container", which is a collection of tags for a website. Then you’ll get a piece of code:
Make sure the provided Google Tag Manager script is placed on every page of your site.
For example, here’s a screenshot of installing in a Wordpress template (by going to Appearance -> Editor and changing the header.php file):
Back in Google Tag Manager, create a "Custom HTML Tag".
- Click the button to +Add a Firing Rule, so that you can tell Google to load our snippet on All Pages:
- Save this tag.
If you’d like, you can define custom Kissmetrics events by adding more tags to the container. In the next example, we’ll create a rule to record the "Viewed Homepage" event when people go to the URL path /.
- When you are ready, go to the Container Draft Overview section on the left. Click the button to create a new version of your container and publish the changes.
As always, you can check in Kissmetrics Live to look for your own activity, and to check that you’ve installed properly.
To recap, there are 4 steps:
- Create a rule that tells on which pages to load those tags.
- Create a version to save a history of your changes.
- Publish the version so that it is actively running on your site.
Updated almost 2 years ago