Omniture Integration

alycia_leow Jun 05, 2012 06:05AM EDT

Hello,

I'm working on integrating omniture to addthis share buttons.
I came across the page about omniture integration. But I'm not sure where to place the following code:-

// Listen for the share event
addthis.addEventListener('addthis.menu.share', shareEventHandler);

I've tried adding it to the html page where it contains the share buttons. But the event gets listened each time the page loads, which is not what i want.
Like the following code:

<div class="addthis_toolbox addthis_default_style" id="addthis_container">
<a class="addthis_button_facebook_like" fb:like:layout="button_count" id="addthis_facebook"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
addthis.addEventListener('addthis.ready', trackOmniture);
});
</script>

The event supposed to be triggered each time the share buttons are clicked.
How can we do that?

This question is closed to new answers.

Still need help?


General Topics

 

Developers