We are using a jquery onHandler extension to fire Coremetrics conversion events for elements that mactch a particular selector "[data-analyticsevent]" and using the value of the data-analyticsevent attribute to populate the ccid parameter. This has worked well while we were only being asked to fire conversion events. Now we've been asked to implement some Element Coremetrics events. I would like to use the same jQuery onHandler and populate out Event Type UDO based on the value of another attribute on the HTML element (data-eventtype) the user has clicked on. In the onHandler extension I am accessing the value of the new HTML attribute with the following JS snippet: $(this).data('eventtype') ? $(this).data('eventtype') : 'conversion' In my mapped data sources for the Coremetrics tag I have mapped the value of the Event Type UDO to the following Coremetrics tags: element:Element conversion:Conversion Example: <!-- Should fire an Element event -->
<a href="google.com" data-analyticsevent="GOOGLE_LINK" data-eventtype="element" />
<!-- Should fire a Conversion event -->
<a href="yahoo.com" data-analyticsevent="YAHOO_LINK" /> The problem is that I am seeing both Element and Conversion Coremetrics event tags being fired when users click on either of the elements. Any ideas on why this would happen and how to fix?
... View more