Tag Manager Injector Alternatives
In 2019, Tag Manager Injector became a paid Chrome Extension. While I totally understand the plugin creator’s reasoning, many of my readers started asking what kind of alternative could I offer them. And I got at least a couple of them.
So I decided to write this quick blog post where you can learn more about those two Tag Manager Injector alternatives and choose the one you like the most.
Don’t get me wrong, the extension definitely great and if you want to support the creator, go do that.
Why was the Tag Manager Injector needed at all?
But sometimes, you are in a situation where you need to quickly check whether X or Y will work in Google Tag Manager but your container is still not added to the site (because a developer is busy).
What is the solution?
You can temporarily inject your GTM container in any website’s source code and play around. Note: don’t worry, you are not hacking a website. This is happening just within the boundaries of your browser. It’s like a sandbox.
In fact, in my Google Tag Manager courses, we have a lot of practical tasks and the only way for everyone to learn on the same website is to use an extension like Tag Manager Injector.
So that was a quick introduction to why you need such an extension at all. Now, let’s move on to the main topic of this guide, Tag Manager Injector alternatives.
Currently, I’m aware of two Chrome extensions that (among other features) also allow you to inject your container to the website.
This is one of my favorites. It is like a Swiss army knife that can do A LOT for you (not only inject the container but also helps to test your GTM setup). For example, it logs to console what data was pushed to dataLayer, runs diagnostics for most common issues, and offers a bunch of other features. I have also created a video lesson about this browser extension in my Intermediate GTM course.
To inject your container, follow these steps:
- Install the extension
- Click its icon and enable the Inspect checkbox
- Then expand the Advanced Options > Add Functionality and click the Inject GTM Container checkbox
- In the first field, enter the 2nd half of your GTM container ID. If you ID is GTM-XXXXXX, then enter just XXXXXX
- In the 2nd field, enter the hostname (read: on which domains do you want to inject this container?)
- Important: do not enter “https://”. Hostname means that you need to enter just the domain, for example, www.example.com
- If you want to inject in multiple websites, enable the RegEx checkbox and write more complex conditions, for example, website1|website2
This Regular Expression will inject your container to all websites that contain “website1” or “website2” in their domain.
- Hit save. Then the page will refresh and your GTM container will be injected.
In your GTM container, click the Preview button (the orange banner will appear in your GTM interface), then refresh the website where you have just injected the container and you should see the Preview and Debug panel at the bottom of the screen.
Da Vinci Tools brings handy enhancements, bug fixes and hacks directly into the Google Analytics and Google Tag Manager interfaces. To name a few:
- Ability to turn all GTM built-in vars on/off at once
- Ability to copy values from GTM Preview and Debug Mode’s Data Layer Tab
- And many other enhancements
However, today’s main focus is on the injection of your Google Tag Manager container. Once you install the extension, login to your Google Tag Manager account and open the container you want to inject.
Next to a Preview button, you will see a new button called Inject.
Click the button and you will see a popup asking on which domain’s website do you want to inject your container.
- If you want to inject to your website (of which domain is www.mywebsite.com) just enter www.mywebsite.com
- If you want to inject your container on two websites, e.g. www.myexample.com and www.someotherwebsite.com, you can just separate both domains with a pipe | . In regular expressions, a pipe means “OR”.
- If you want to inject the container on all websites where the domain contains a word website, just enter it in that popup.
The popup accepts Regular Expressions so you can write both simple and more complex conditions.
Tag Manager Injector Alternatives: Final words
I hope that you found at least one of these two extensions useful. If you want to support the creator of the Tag Manager Injector extension, go ahead and upgrade to a yearly pricing plan. Currently (in 2019), it costs 3 euros per year.
If you are looking for alternatives (and you obviously are if you have landed on this page), try Data Layer Inspector or Da Vinci Tools.