Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

balakrishnad200
Level 4
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 Accepted Solution
Gigazelle
Correct answer by
Employee
Employee

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.

View solution in original post

6 Replies
surajp86368405
Level 4
Level 4

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

Gigazelle
Correct answer by
Employee
Employee

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.

balakrishnad200
Level 4
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"; } }
Gigazelle
Employee
Employee
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.
jantzen_belliston-Adobe
Level 10
Level 10
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?