Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
Google Tag Manager - Custom Variable - Get Header text when click a link

I'm having an issue right now with getting the right element for a variable.

Here is what I want to accomplish

When a user click on a link from the sidebar, I want the following info :

  • Click text
  • Click URL
  • Click ID
  • Click Element
  • Click Classes
  • Page URl

At this moment I can have all but Click Classes which is empty ""

But I also want when I click the link or the button, I also want the title that is in the elementor container.

Image link : https://i.imgur.com/NoDv2wh.jpg

I already setup my TAG and Triggers

So I tried following some of the info I found one the forum, but clearly I have no idea how to accomplish that and I search a lot on Google without clear indications.

Here the code for my custom JS

function() {     
return {{Click Element}}.closest(".elementor-widget-container").find('h4').text();}

Right now, I just want to be able to create a custom variable to get the header text when I click on a button or a link.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda