Analytics - Manual Events Guide Document

The Webtrends SDK is an analytics library for iOS. It enables the collection of events associated with your application. Events fall into two categories: Manual Events and Automatic Events. This document covers the collection of manual events. For automatic event collection, see the Automatic Events Guide This guide will walk you through the initial setup process, from integrating the SDK with your project, to sending events to Webtrends.

Install the Webtrends SDK

In order to collect events from your iOS application, the Webtrends SDK must be installed into your project. See the Getting Started Guide for details on setting up your project.

Once you have properly set up and configured your application with the Webtrends SDK, you are ready to equip the application to send events to the Webtrends data collection servers.

The Data Collector Object

The primary interface for using the Webtrends SDK is the WTDataCollector class. WTDataCollector provides a singleton object that may be used throughout your project. To instantiate the singleton object, call the [WTDataCollector sharedCollector] method. This method returns a pointer to the singleton. This instance may be assigned to a variable name or used inline.

To assign the WTDataCollector singleton to a variable:

let collector = WTDataCollector.sharedCollector()
WTDataCollector *collector = [WTDataCollector sharedCollector];

Alternatively, the singleton may be referenced inline using the [WTDataCollector sharedCollector] method.

WTDataCollector.sharedCollector().pause()  // Pauses the collection of events
[[WTDataCollector sharedCollector] pause];  // Pauses the collection of events

Parameters Collected on Every Event

There is a set of parameters that are collected with every event, regardless of whether the event is manually or automatically triggered.

Session Parameters

  • Wt.vtvs: session start
  • Wt.vt_sid: visitorid.sessionStart (combined value)
  • Wt.co_f: visitorId
  • Wt.vtid: vistorId
  • Wt.ets: the time stamp of the event
  • Wt.vt_f: 1 (if this is the first event ever)
  • Wt.v_f_s: 1 (if this is the first event of the session)
  • Wt.vt_f_d: 1 (if this is the first event of the session)
  • Wt.vt_f_tlh: 1 (timestamp of the last event)

Device and OS Parameters

  • wt.co: “true”
  • wt.dm: deviceModel
  • wt.os: osVersion
  • wt.av: applicationVersion
  • wt.a_nm: f.applicationName
  • wt.a_dc: f.carrierName
  • wt.ul: language
  • wt.uc: country
  • wt.sr: screenResolution
  • wt.sdk_v: buildNumber
  • wt.d_id: Unique advertisingIdentifier (if enabled)

Manual Event Triggers

All event triggers are methods called against the WTDataCollector singleton. This singleton is referenced via the [WTDataCollector sharedCollector] method. For the purposes of documenting the event triggers, we will assume that the singleton has been assigned to a variable.

Assigning the Webtrends Data Collector to a Variable

let collector = WTDataCollector.sharedCollector()
WTDataCollector *collector = [WTDataCollector sharedCollector];

Application Start Events

The [WTDataCollector triggerEventForApplication:startWithCustomParams:] method is used to trigger an event associated with an application start. When used as a manual event, it may be customized with an application name and an optional dictionary of custom parameters.

Example

collector.triggerEventForApplication("My Application", startWithCustomParams:["foo":"bar", "key 1":"value 1"]);
[collector triggerEventForApplication:@"My Application" startWithCustomParams:@{@"foo":@"bar", @"key 1":@"value 1"}];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/start”
  • WT.ti: appName
  • WT.pi: appName
  • WT.sys: “startup”
  • WT.dl: “61”

Application Terminate Events

The [WTDataCollector triggerEventForApplication:terminateWithCustomParams:] method is used to trigger an event associated with an application end. When used as a manual event, it may be customized with an application name and an optional dictionary of custom parameters.

Example

collector.triggerEventForApplication("My Application", terminateWithCustomParams:["foo":"bar", "key 1":"value 1"]);
[collector triggerEventForApplication:@"My Application" terminateWithCustomParams:@{@"foo":@"bar", @"key 1":@"value 1"}];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/terminate”
  • WT.ti: appName
  • WT.pi: appName
  • WT.sys: “exit”
  • WT.dl: “61”

Application Entering Background Events

The [WTDataCollector triggerEventForApplication:didEnterBackgroundWithCustomParams:] method is used to trigger an event associated with an application entering the background. When used as a manual event, it may be customized with an application name and an optional dictionary of custom parameters.

Example

collector.triggerEventForApplication("My Application", didEnterBackgroundWithCustomParams:["foo":"bar", "key 1":"value 1"]);
[collector triggerEventForApplication:@"My Application" didEnterBackgroundWithCustomParams:@{@"foo":@"bar", @"key 1":@"value 1"}];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/background”
  • WT.ti: appName
  • WT.pi: appName
  • WT.sys: “background”
  • WT.dl: “61”

Application Entering Foreground Events

The [WTDataCollector triggerEventForApplication:willEnterForegroundWithCustomParams:] method is used to trigger an event associated with an application entering the foreground. When used as a manual event, it may be customized with an application name and an optional dictionary of custom parameters.

Example

collector.triggerEventForApplication("My Application", willEnterForegroundWithCustomParams:["foo":"bar", "key 1":"value 1"]);
[collector triggerEventForApplication:@"My Application" willEnterForegroundWithCustomParams:@{@"foo":@"bar", @"key 1":@"value 1"}];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/foreground”
  • WT.ti: appName
  • WT.pi: appName
  • WT.sys: “foreground”
  • WT.dl: “61”

Application Error Events

The [WTDataCollector triggerEventForApplication:withErrorMessage:customParams:] method is used to trigger an event associated with an error occurring in the application. It may be customized with an application name, an error message, and an optional dictionary of custom parameters.

Example

collector.triggerEventForApplication("My Application", withErrorMessage:"Application Error Message", customParams:["foo":"bar", "key 1":"value 1"]);
[collector triggerEventForApplication:@"My Application" withErrorMessage:@"Application Error Message" customParams:@{@"foo":@"bar", @"key 1":@"value 1"}];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/error”
  • WT.ti: appName
  • WT.pi: appName
  • WT.er: errorMessage
  • WT.dl: “61”
  • WT.sys: “error”

View Did Appear Events

The [WTDataCollector triggerEventForViewDidAppear:withCustomParams:] method is used to trigger an event when a view appears in your application. When triggered manually, it may be customized with a view title and an optional dictionary of custom parameters.

Example

collector.triggerEventForViewDidAppear(self.title, withCustomParams:nil);
[collector triggerEventForViewDidAppear:self.title withCustomParams:nil];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/activity/start”
  • WT.ti: controllerTitle
  • WT.pi: controllerTitle
  • WT.sys: “start”
  • WT.dl: “61”

View Did Disappear Events

The [WTDataCollector triggerEventForViewDidDisappear:withCustomParams:] method is used to trigger an event when a view disappears in your application. When triggered manually, it may be customized with a view title and an optional dictionary of custom parameters.

Example

collector.triggerEventForViewDidDisappear(self.title, withCustomParams:nil);
[collector triggerEventForViewDidDisappear:self.title withCustomParams:nil];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/activity/end”
  • WT.ti: controllerTitle
  • WT.pi: controllerTitle
  • WT.sys: “pause”
  • WT.dl: “61”

Notification Events

The [WTDataCollector triggerEventForNotification:withCustomParams:] method is used to trigger an event when a notification is sent to your application. When triggered manually, it may be customized with a notification message and an optional dictionary of custom parameters.

Example

collector.triggerEventForNotification("Notification Message goes here.", withCustomParams:nil);
[collector triggerEventForNotification:@"Notification Message goes here." withCustomParams:nil];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/application/notification”
  • WT.ti: applicationName
  • WT.es: “Push Notification:
  • WT.pi: applicationName
  • WT.sys: “Push_Open”
  • WT.dl: “1”

Ad Click Events

The [WTDataCollector triggerEventForAdClickName:eventMeta:] method is used to trigger an event when a user clicks (or touches) an ad. It accepts a string value for the ad name and a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/bank/products",  
                                     description:"user tapped advertisement", 
                                            type:"tap", 
                                    customParams:["myCustomParam":"myCustomValue"])
collector.triggerEventForAdClickName("Ad name goes here.", eventMeta:eventMetaData);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/bank/products"  
                                               description:@"user tapped advertisement" 
                                                      type:@"tap" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
[collector triggerEventForAdClickName:@"Ad name goes here." eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.a_an: adName
  • WT.a_ac: “1”
  • WT.sys: “click”
  • WT.dl: “61”

Ad Impression Events

The [WTDataCollector triggerEventForAdImpressionNames:eventMeta:] method is used to trigger an event when a user views one or more ads within the application. Because multiple ad impressions can happen within a single screen view, this method can accept multiple ad names in an array of strings and a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath(nil,  
                                     description:"User viewed ads", 
                                            type:"impression", 
                                    customParams:["myCustomParam":"myCustomValue"])
let adNames = ["Ad Name 1", "Ad Name 2", "Ad Name 3"]
collector.triggerEventForAdImpressionNames(adNames, eventMeta:eventMetaData);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:nil  
                                               description:@"User viewed ads" 
                                                      type:@"impression" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSArray *adNames = @[@"Ad Name 1", @"Ad Name 2", @"Ad Name 3"];
[collector triggerEventForAdImpressionNames:adNames eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.a_an: “Ad Name 1; Ad Name 2; Ad Name 3”
  • WT.a_ai: “1;1;1” (A string of “1"s of the length of the AdNames array)
  • WT.sys: “impression”
  • WT.dl: “60”

Search Events

The [WTDataCollector triggerEventForSearchPhrase:searchResult:eventMeta:] method is used to trigger an event when a user performs a search within the application. This method accepts both search phrase and search results strings as parameters, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear",  
                                     description:"user searched for product", 
                                            type:"search",
                                    customParams:["myCustomParam":"myCustomValue"])
let searchPhrase = "shiny boots"
let searchResults = "your search results returned as a string"
collector.triggerEventForSearchPhrase:(searchPhrase, searchResults:searchResults, eventMeta:eventMetaData);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear"  
                                               description:@"user searched for product" 
                                                      type:@"search" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSString *searchPhrase = @"shiny boots";
NSString *searchResults = @"your search results returned as a string";
[collector triggerEventForSearchPhrase:searchPhrase searchResult:searchResult eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.oss: searchPhrase
  • WT.oss_r: searchResult
  • WT.sys: “search”
  • WT.dl: “0”

Content View Events

The [WTDataCollector triggerEventForContentView:contentGroup:] method is used to trigger an event when a user views some particular content within the application. This method takes content group as a string parameter, which specifies a group of related content views, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear",  
                                     description:"user viewed footwear products", 
                                            type:"content view", 
                                    customParams:["myCustomParam":"myCustomValue"])
let group = "footwear content group"
collector.triggerEventForContentView(eventMetaData, contentGroup:group);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear"  
                                               description:@"user viewed footwear products" 
                                                      type:@"content view" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSString *group = @"footwear content group";
[collector triggerEventForContentView:eventMetaData contentGroup:group];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.cg_n: contentGroup
  • WT.sys: “content”
  • WT.dl: “0”

Screen View Events

The [WTDataCollector triggerEventForScreenView:contentGroup:] method is used to trigger an event when a user views a screen, article, or image within the application. This method takes content group as a string parameter, which specifies a group of related content views, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear", 
                                     description:"user viewed footwear products", 
                                            type:"screen view", 
                                    customParams:["myCustomParam":"myCustomValue"])
let contentGroup = "footwear content group"
collector.triggerEventForScreenView(eventMetaData, contentGroup:contentGroup);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear"  
                                               description:@"user viewed footwear products" 
                                                      type:@"screen view" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSString *contentGroup = @"footwear content group";
[collector triggerEventForScreenView:eventMetaData contentGroup:contentGroup];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.cg_n: contentGroup
  • WT.sys: “screen”
  • WT.dl: “0”

Product View Events

The [WTDataCollector triggerEventForProductId:productSku:contentGroup:eventMeta:] method is used to trigger an event when a user views a product within the application. This method takes product ID, product SKU, content group as a string parameter, which specifies a group of related content views, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear",  
                                     description:"user viewed XP-4011", 
                                            type:"product view", 
                                    customParams:["myCustomParam":"myCustomValue"])
let productId = "XP-4011"
let productSku = "Shiny boots, size 9, pink"
let contentGroup = "footwear content group"
collector.triggerEventForProductId(productId, productSku:productSku, contentGroup:contentGroup, eventMeta:eventMetaData);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear"  
                                               description:@"user viewed XP-4011" 
                                                      type:@"product view"
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSString *contentGroup = @"footwear content group";
[collector triggerEventForProductId:productId productSku:productSku contentGroup:contentGroup eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.cg_n: contentGroup
  • WT.pn_id: productId
  • WT.pn_sku: productSku
  • WT.sys: “product”
  • WT.dl: “0”

Conversion Events

The [WTDataCollector triggerEventForConversion:contentGroup:eventMeta:] method is used to trigger an event when a when a conversion event, such as a purchase or registration, occurs within the application. This method accepts parameters for conversion name as a string, content group as a string, which specifies a group of related content views, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear",  
                                     description:"user purchased XP-4011",
                                            type:"product purchase", 
                                    customParams:["myCustomParam":"myCustomValue"])
let conversionName = "Purchase: shiny boots"
let contentGroup = "footwear content group"
collector.triggerEventForConversion(conversionName, contentGroup:contentGroup, eventMeta:eventMetaData)
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear" 
                                               description:@"user viewed XP-4011" 
                                                      type:@"product view" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
NSString *conversionName = @"Purchase: shiny boots";
NSString *contentGroup = @"footwear content group";
[collector triggerEventForConversion:conversionName contentGroup:contentGroup eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.cg_n: contentGroup
  • WT.conv: conversionName
  • WT.sys: “conversion”
  • WT.si_cs: “1”
  • WT.dl: “0”

Media View Events

The [WTDataCollector triggerEventForEventMedia:contentGroup:eventMeta:] method is used to trigger an event when a media event, such as a user viewing a video clip, occurs within the application. This method takes a WTEventMedia object containing details of the media, a content group as a string parameter, which specifies a group of related content views, as well as a WTEventMeta object, which contains meta data about the event.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/videos/cats", 
                                     description:"user viewed cat video", 
                                            type:"media view", 
                                    customParams:["myCustomParam":"myCustomValue"])
let eventMedia = WTEventMedia.initWithMediaName("CuteCatVideo.mp4", 
                                      mediaType:"video, mp4", 
                                 mediaEventType:"catapalooza event")
let contentGroup = "cat video content group"
collector.triggerEventForEventMedia(media:eventMedia, contentGroup:contentGroup, eventMeta:eventMetaData);
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/videos/cats" 
                                               description:@"user viewed cat video" 
                                                      type:@"media view" 
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
WTEventMedia *eventMedia = [WTEventMedia initWithMediaName:@"CuteCatVideo.mp4", 
                                                 mediaType:@"video, mp4", 
                                            mediaEventType:@"catapalooza event"]
NSString *contentGroup = @"cat video content group";
[collector triggerEventForEventMedia:eventMedia contentGroup:contentGroup eventMeta:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.cg_n: contentGroup
  • WT.clip_n: eventMedia.mediaName
  • WT.clip_t: eventMedia.mediaType
  • WT.clip_ev: eventMedia.mediaEventType
  • WT.sys: “media”
  • WT.dl: “60”

Action Events

The [WTDataCollector triggerEventForAction:] method is used to trigger an event when a user taps a button within the application. This method takes a WTEventMeta object, which contains meta data about the event.

WatchKit SDK Alternative

In the WatchKit SDK, you can use [WTWatchDataCollector sendEventForAction:] to send action events.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear", 
                                     description:"user tapped more info button", 
                                            type:"button tap", 
                                    customParams:["myCustomParam":"myCustomValue"])
collector.triggerEventForAction(eventMetaData)
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear" 
                                               description:@"user tapped more info button" 
                                                      type:@"button tap"
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
[collector triggerEventForAction:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.sys: “button”
  • WT.dl: “60”

Custom Events

The [WTDataCollector triggerEventForCustomEvent:] method is used to trigger an event when a developer-defined event of interest occurs within the application. This method takes a WTEventMeta object, which contains meta data about the event.

WatchKit SDK Alternative

In the WatchKit SDK, you can use [WTWatchDataCollector sendEventForCustomEvent:] to send custom events.

Example

let eventMetaData = WTEventMeta.eventMetaForPath("/products/footwear", 
                                     description:"user did something very interesting", 
                                            type:"pinch zoom on product", 
                                    customParams:["myCustomParam":"myCustomValue"])
collector.triggerEventForCustomEvent(eventMetaData)
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:@"/products/footwear" 
                                               description:@"user did something very interesting" 
                                                      type:@"pinch zoom on product"
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
[collector triggerEventForCustomEvent:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: eventMetaData.eventPath
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.sys: “custom”
  • WT.dl: “0”

WatchKit SDK Specific Events

Interface Activation

The [WTWatchDataCollector sendEventForActivation:] method is used to trigger an event when a WKInterface activates. This method takes a WTEventMeta object, which contains meta data about the event.

Example

let watchCollector = WTWatchDataCollector.sharedCollector()
let eventMetaData = WTEventMeta.eventMetaForPath(nil, 
                                     description:"MyInterface activated", 
                                            type:"view", 
                                    customParams:["myCustomParam":"myCustomValue"])
watchCollector.sendEventForActivation(eventMetaData)
WTWatchDataCollector *watchCollector = [WTWatchDataCollector sharedCollector];
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:nil 
                                               description:@"MyInterface activated" 
                                                      type:@"view"
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
[watchCollector sendEventForActivation:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/watch/interface/start”
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.sys: “start”
  • WT.dl: “0”

Interface Deactivation

The [WTWatchDataCollector sendEventForDeactivation:] method is used to trigger an event when a WKInterface deactivates. This method takes a WTEventMeta object, which contains meta data about the event.

Example

let watchCollector = WTWatchDataCollector.sharedCollector()
let eventMetaData = WTEventMeta.eventMetaForPath(nil, 
                                     description:"MyInterface deactivated", 
                                            type:"view", 
                                    customParams:["myCustomParam":"myCustomValue"])
watchCollector.sendEventForDeactivation(eventMetaData)
WTWatchDataCollector *watchCollector = [WTWatchDataCollector sharedCollector];
WTEventMeta *eventMetaData = [WTEventMeta eventMetaForPath:nil 
                                               description:@"MyInterface deactivated" 
                                                      type:@"view"
                                              customParams:@{@"myCustomParam":@"myCustomValue"}];
[watchCollector sendEventForDeactivation:eventMetaData];

Webtrends Parameter Values

This method sends the following parameter values to the Webtrends Data Collection servers:

  • dcsuri: “/watch/interface/end”
  • WT.ti: eventMetaData.eventDescription
  • WT.pi: eventMetaData.eventDescription
  • WT.ev: eventMetaData.eventType
  • WT.sys: “end”
  • WT.dl: “0”