There are a couple of names used in GTM admin panel:
- Tags - modifications made to your page, like adding "Google Analytics"
- Triggers - describes when those modifications should be applied e.g. "All Pages", "Scroll Depth"
- Containers - sets of Tags and Triggers published to your website, they are versioned to ease any rollbacks and provide history
These are just basic concepts but they should be enough in order not to hurt yourself. I would suggest to find appropriate tutorials for the first few changes made with GTM as it might be not so obvious how to use that tool.
Is it possible to share one GTM Container across regular website and its AMP version?
As far as I know it is not possible to do as AMP websites need a different type of container which has type of "AMP". Such Container has different set of Tags and Triggers available. If you would like to have same set of Tags added through the GTM on your both website versions you will have to create two separate containers and maintain them independently. This is not very convenient but there is probably no other way (right now).
Definitely, but I wouldn't recommend such approach for deploying larger code bases as it might be hard to maintain in the future.
All you need to do is creating a new Tag of "Custom HTML" type.
It might look as follows:
The above code will print
Hello from GTM to the browser console each time you enter your website.
Of course it will do so only if you publish Container with that Tag.
Is it possible to track scrolling depth with Google Tag Manager and Google Analytics
Of course you can use Google Tag Manager to track scrolling depth on Google Analytics. This is especially useful if you have a page when most of users are not clicking any links, just scroll it down and exit after reading the content. By implementing scroll tracking you will probably reduce bounce rate reported by Google Analytics. If you would like to get the details I will write a separate post about that.
How does Google Tag Manager Preview feature works?
After you click "Preview" button in the top right corner you will get an URL which after entering creates a special cookie in you browser. Thanks to that cookie you can view you website with changes which are not currently visible to the other visitors. It is very useful for testing purposes if you are not sure if your GTM configuration will work as you expect.
Does Container name matters?
Container name in GTM doesn't have to be the same as your website URL. This is just a convention which you may find easy to use but you can name your GTM Containers however you want.
- https://developers.google.com/tag-manager/quickstart - GTM quick start docs