Implementing counter events with assigned integer values

Hey Venkatachalapathy,
Is there a URL and steps to reproduce where we can see this happening? The code above looks correct so I'd like to see it in action and try to find something else that could causing this.
Thanks

Implementing counter events with assigned integer values

Hi Venkat,
This is a great catch. We'll plan to update the SiteCatalyst template today with a fix.
The issue is the s.linkTrackEvents was not getting set correctly to include event41.
Thanks again for providing detailed information.

Implementing counter events with assigned integer values

You're welcome. Give us about 3-4 hours more for our release to go out tonight. (Or get the new template first thing tomorrow.)
Also, the u.addEvent sets b.sc_events behind-the-scenes which allows for a little less code. And, we've added support for passing a second param to u.addEvent (that contains the value.) This may be more intuitive way to assign values to events.
// Updated code:
if (a=='link') {
switch (b.contenttype) {
case 'Content Copy':
u.addEvent("event40");
u.addEvent("event41=" + b.count); // NEW: u.addEvent("event41", b.count);
break;
}
}