내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Trouble tracking clicks on element CSS selector. Alternatives?

Avatar

Level 2

Hi there - 

 

Just trying to figure out Adobe Launch. I am looking to track clicks on a live chat button. I'm not exactly a coder but -

 

With the following code, is it possible to create a rule around the "class" value? Alternatively, can I use the text of the button "Live Chat"? 

 

<button _ngcontent-tiq-c79="" type="button" data-backdrop="false" class="chatButton"> Live Chat </button>

 

What I've tried already? I tried using CSS selector but it seems to be different for every button sonce we are using Angular. The "class" and text value "Live Chat" seem to be the only consistent values.

 

Thanks in advance.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

@puckingfeachy You can create a rule for the click of an CTA in Adobe Launch. Similar to this 

VaniBhemarasetty_0-1637416454044.png

Similar discussions on the similar query https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/how-to-track-the-c...

 

Hope this helps

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Employee Advisor

@puckingfeachy You can create a rule for the click of an CTA in Adobe Launch. Similar to this 

VaniBhemarasetty_0-1637416454044.png

Similar discussions on the similar query https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/how-to-track-the-c...

 

Hope this helps

Avatar

Level 2

Hey @VaniBhemarasetty VaniBhemarasetty - 

Thanks for your helpful reply!

How do I know what value to put in the highlighted area?

Can I put class? id? or some other value?

For example - if I right click on my target element and go to "Inspect" - then within the "Elements" panel I right click on the code behind my target element and select "Copy" > "Selector" - I get:

#giportal > modal-container > div > div > div.modal-body > div.buttons.ng-star-inserted > button

The above seems like a lot compared tot he example you provided above.

 

I guess I'm curious to know how to get the "CSS Selector".

Thanks,

pfeach.

Avatar

Employee Advisor

@puckingfeachy You can read about it here on how to get css selector

 

https://amasty.com/knowledge-base/product-labels-find-css-selector.html