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

Avatar

Avatar
Ignite 5
Level 2
balakrishnad200
Level 2

Likes

14 likes

Total Posts

53 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Validate 1
Give Back 3
View profile

Avatar
Ignite 5
Level 2
balakrishnad200
Level 2

Likes

14 likes

Total Posts

53 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Validate 1
Give Back 3
View profile
balakrishnad200
Level 2

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 (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
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.

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 1
Level 3
surajp86368405
Level 3

Likes

21 likes

Total Posts

77 posts

Correct reply

1 solution
Top badges earned
Affirm 1
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Affirm 1
Level 3
surajp86368405
Level 3

Likes

21 likes

Total Posts

77 posts

Correct reply

1 solution
Top badges earned
Affirm 1
Validate 10
Validate 1
Contributor
Shape 1
View profile
surajp86368405
Level 3

19-02-2020

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