New Feature - Track Events in Flash, Ajax and More

5:28 pm Features, Support

We have rolled out a new feature in nextSTAT that will allow you to track events in Flash, JavaScript (AJAX) and other Rich Internet Application environments. The cornerstone of this functionality is a new JavaScript function called NS_LogEvent that can be invoked from your Flash or Ajax applications.

To track an event in nextSTAT call the NS_LogEvent JavaScript function passing in an event name. The event name can by any string you wish and will appear in your nextSTAT reports as Page Views. It is recommended that you employ a consistent naming convention for your events that will easily denote the type of event that occured. A common approach is to name your event hierarchy as if they were directories on your web server. For example, to track flash button clicks you may want to name the events:

/flashevents/button1/click
/flashevents/button2/click
etc.

Similarly for Ajax events you could use something like:

/ajaxevents/page1/view
/ajaxevents/page2/view
etc.

To invoke the NS_LogEvent JavaScript function from within a Flash application you can use the getURL ActionScript method:

on (release) {
getURL("javascript:NS_LogEvent('/flashevents/button1/click')");
}

Likewise, in your Ajax application you can make calls to NS_LogEvent anytime you wish to record an event in nextSTAT:

function ajaxPage(page) {
NS_LogEvent('/ajaxevents/'+page+'/view');
...
}

Please let us know if you have any questions or comments about this new feature. You can request help in the nextSTAT Forums or send us an email to support@nextstat.com.

screenie_01-2007-11-27.gif

Related

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.