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

balakrishnad200 18-02-2020

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

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (2)

Answers (2)

Gigazelle
Employee
03-03-2020

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.

surajp86368405 19-02-2020

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