How to get the parent name of a clicked element in GTM / Tag Manager

Simples: Create a new Javascript Variable: Call it whatever you like: Here’s the javascript: function() { var objectParentofClickedElement = $({{Click Element}}).parent(); if ( objectParentofClickedElement) { return objectParentofClickedElement.text(); }else {return ‘undefined’;} } Preview and test the variable, for example you could click an element and see what it returns using the variables section. Now you should … Continue reading How to get the parent name of a clicked element in GTM / Tag Manager

DIY Pallet Planter box – Easy to build & Recycle!

Here’s a DIY planter box (with some character) made from an old wooden pallet! Here’s some inspiration for your own project. To complete this project, I basically needed: Pallet(s) – I literally got one of these of a nearby footpath, you might need two depending on the size.  I used two small pallets to make this big … Continue reading DIY Pallet Planter box – Easy to build & Recycle!

My website uses cookies to ensure you get the best user experience. Learn more

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close