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

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

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

해결됨

How to stop passing in the custom event other than exit links

Avatar

Level 4

Hi Team,

 

I have used the s.plugin method to track the exit link tracking  the event is getting triggered on exit link. Also, the event is getting triggered in rest of the pages as well . Can you help me how to suppress the event from all pages other than exit link.

 

s.linkTrackEvents="x";
s.events="eventx";
s.doPlugins = function(s) {
if (s.linkType === 'e') { // this checks if this call is an exit link call.
s.events="eventx";
}
}

 

Thanks,

Balak

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

Could you use the actual event numbers in your example, instead of just "eventx"? That would be super helpful in determining which events are firing where.

원본 게시물의 솔루션 보기

6 답변 개

Avatar

Level 5

why are you setting s.events="eventx"; outside of the function ? should not it be only inside the function ?

Avatar

Level 4
to pass an event I'm using it

Avatar

정확한 답변 작성자:
Employee Advisor

Could you use the actual event numbers in your example, instead of just "eventx"? That would be super helpful in determining which events are firing where.

Avatar

Level 4
s.linkTrackEvents="256"; s.events="event256"; s.doPlugins = function(s) { if (s.linkType === 'e') { // this checks if this call is an exit link call. s.events="event256"; } }

Avatar

Employee Advisor
if you want to remove event256 from all hits except exit links, just remove the second line of code where you're setting event256. You're still setting it in the if statement, so it will still be sent out during an exit link call.

Avatar

Employee
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?