Parent Element Variable

Community variable by Ayudante

What is Parent Element Variable?

Searches for the element with the specified attribute from the parent element of the Auto Event Variable, and returns the attribute value etc.

Parent Element Variable variable is created by Ayudante. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. To reduce the processing load, the number of dataLayer API calls has been reduced.
  2. Added "not equal" to the conditional operator to search.
  3. Initial release.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now