Zaraz equivalent to GTM {{Click Text}}

Is it possible to track text of a clicked element trough Zaraz?

In GTM we have an Auto-Event Variable called {Click Text}}. I’m already using the Event Property href and it works perfectly.

Yes, it’s possible to track the clicked text. I’m new to Zaraz but it was one of first things that I’ve tried to do.

Zaraz is not able to pull the clicked text automatically, so you’ll need to have a zaraz.track() that will pass the text of the clicked element for you. Then you’ll be able to reference as you put on your screenshot.

For example:

zaraz.track("menu_click", {click_text: "About Us"});

Then you’ll be able to add the Event Property “click_text” in Zaraz UI.