Tracking Activities
With NuConomy you can track and measure an unlimited number of activities on your website (e.g. some of our customers track over 50 activities). Examples of activities are page views, comments, ratings, postings, media uploads, purchases, adding friends, etc.
This flexible and comprehensive tracking capability empowers you to regain control of and optimize your website to achieve your business goals. From day one, you do not have to define everything you want to track. We recommend starting with some core activities because with our flexible system you can easily add more later on, if necessary.
In order to track activities across your site, you need to understand one simple API method: LogActivity.
NUCONOMY.Logger.LogActivity( visitorUserID, contentOwnerUserID, contentID, activityID,
activityValue);
| Parameter Name | Description |
|---|---|
| visitorUserID | Unique ID that identifies a visitor on your site. If the user is anonymous/unknown, you should pass an empty string. |
| contentOwnerUserID | Unique ID that identifies the owner of the piece of content on which the visitor performed an activity. For example, the ID of the author of a blog post. If the content owner is anonymous/unknown, the communication string is empty. |
| contentID | Unique ID that identifies a specific piece of content. Examples are a video ID, a product ID or the permalink of a blog post. |
| activityID | Unique ID that identifies the specific activity. You can get a list of the activities and their IDs under the administration tab in NuConomy Studio at https://studio.nuconomy.com. |
| activityValue | The value associated with the activity you track. For example, the rating that was given to a video or the price of an item that was purchased. |
Typically, this API call is embedded on certain events on your page, e.g. clicks, mouse hovers, etc. Depending on how many activities you wish to track, you can make this call as many times as you want from the same page, each time passing different data sets.
Code Examples:
To log a comment on a blog post you could use the following code:
NUCONOMY.Logger.LogActivity(“Current User ID who made the comment”, “The Blogger
ID”,”http://MyBlogSite.com/PostPermaLink”, 3, 1);
To log a purchase of an item with price of $157 you could use the following code:
NUCONOMY.Logger.LogActivity(“Current User ID who purchased the item”, “The Brand
ID which manufactured the item”, “Item ID”, 10, 157)
