Stg.click & stg.capturingClick not capturing the same element

Hello,

I just noticed that the clicked element is different depending on the event.

In this case, I think the correct element should be the one detected by stg.click, as it is the <a href> tag.

Is this normal?

Thank you!

Hi @Thomas_Anode_FR,

Yes, stg.capturingClick and stg.click can capture different element. The reason is:

  • stg.capturingClick - as element recognizes the exact element that is being clicked
  • stg.click - as element recognizes the exact element that is being clicked or if there is then the closest <a> element.

So if you clicked na <img> element and this element have a <a> element parent (<a> <img> </a>) then stg.capturingClick will catch the <img> element, while stg.click will catch the <a> element.

Best,
Oliwer

Thank you Oliwer for the explanation!

However, why is my click trigger waiting for the stg.capturingClick on the stg.click event?

My tag won’t fire because of this condition.

Thank you again

stg.capturingClick is used as a condition when you do not use the delayed click. What I mean by that is:

- this will use stg.capturingClick

- this will use stg.click

You can change that in your trigger settings. If you want to use stg.click, turn on the “wait for tags before loading the next page” setting.

Best,
Oliwer

1 Like

Good to know! It works fine now.

Thank you, have a good day :slight_smile: