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!
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:
<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:
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
Good to know! It works fine now.
Thank you, have a good day