It was never so easy to get YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

How to access parent element's ID with .closest() in Google Tag Manager

Follow
Analytics Mania - Google Analytics & Tag Manager

In this video, you will learn an advanced technique. If the visitor interacts with an element (e.g., sees it), you can use Google Tag Manager and Custom JavaScript to fetch the parent element’s ID.

This will be done with a method called .closest().


=== LINKS ===

Subscribe to our Youtube channel    / @analyticsmania  

✭ Video: How to track form submissions with Element Visibility trigger
   • How to track forms with Element Visib...  

✭ Learn more about CSS selectors in this GTM course
https://www.analyticsmania.com/course...


=== CONNECT WITH JULIUS & ANALYTICS MANIA ===

✭ Facebook   / analyticsmania  
✭ Twitter   / fedorovicius  
✭ Linkedin   / fedorovicius  

Subscribe to our Youtube channel    / @analyticsmania  

#googletagmanager

posted by trennungsbf