Getting an Element from the Site
On the target element on the page, right click and select 'inspect'
Right click the element that is being highlighted In the development tool
Select 'Copy' -> 'Copy selector'
Tag Manager Set Up
Adding a New Trigger
In the container, go to 'trigger' -> 'new'
Click the configuration box -> 'all elements'
Select 'some clicks' -> 'Choose built-in variable'
Select 'Click Element'
Choose 'matches CSS selector'
Paste the selector you copied from your site in the third box
Reusing Tags and Triggers
Publishing
We have to submit the changes for them to take an effect on global environment. Click 'Submit' on the top right (Whenever you see numbers other '0' it means that there are some work not published yet).
Click 'Publish' (Adding a message is optional).
Click 'Skip' or 'Continue' (If you wrote a message in the previous step you won't see this pop up.
When it is done, the summary will appear.
Testing
So far, we have seen how to implement GTM tags with a click trigger.
'Marketing and SEO > Google Tag Manager' 카테고리의 다른 글
GTM (Triggering) - Scroll (1) | 2023.04.12 |
---|---|
Google Tag Manager - Reusing Tags and Triggers (0) | 2023.04.12 |
Google Tag Manager Account Setup (2) | 2023.03.29 |
GTM (Triggering) - Page View (0) | 2023.03.20 |
[GTM] - GA4 Set up (configuration) (0) | 2023.03.03 |