Custom Link Tracking function not firing in time

bakerb39 May 07, 2012 07:00PM EDT

I have a custom function that does not seem to have enough time to fire after the onclick event is captured after adding the addthis code. The only time it fires successfully is when I click on the Twitter icon link. The eventCapture seems to work if I add an alert except for the email link. Does the addthis code essentially prevent other functions from running? Why does the Twitter link work, though? (Maybe, because it opens a small window and takes time to do this allowing my code to complete?) Just guessing . . .

function shareEventHandler(evt) {
if (evt.type === 'addthis.menu.share') {
var linkTitle = evt.data.service;
//alert(linkTitle);
eventCapture('Link Click', 'Page Tag', linkTitle, '');
}
}
addthis.addEventListener('addthis.menu.share', shareEventHandler);

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers