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

Avatar

Avatar

balakrishnad200

Avatar

balakrishnad200

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

458

Correct Answer

734

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

458

Correct Answer

734
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.

Avatar

Avatar

surajp86368405

Avatar

surajp86368405

surajp86368405

19-02-2020

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