TrackingPageView
public class TrackingPageView : NSObject
This is the representation of a view. After creation of a new ETTrackingPageView, you can add several properties. Afterwards you should add the pageView to a ETTrackingSession and perhaps submit the collected data of the session.
-
The different target rules
- ETTargetRuleUseMonitorDefaultSettings: Use monitor default settings
- ETTargetRuleUseOnlyFirstFromSession: Use only first from session
- ETTargetRuleAll: Use all
Declaration
Swift
public enum ETTargetRule -
Declaration
Swift
public var JSONString: String? { get }Return Value
String of the PageView as JSON
-
A textual description of the PageView
Declaration
Swift
override public var description: String { get } -
Adds a billing property
Declaration
Swift
public func add(billing billingID: String, customerID: String, total: Double, country: String?, cip: String?, city: String?)Parameters
billingIDunique identifier for this bill
customerIDunique identifier for this customer
totalthe total sum of this bill!
countrythe country of the customer
cipthe cip of the customer
citythe city of the customer
-
Adds a contact property
Declaration
Swift
public func add(contact: String)Parameters
contacttype of the contact-form used
-
Adds a content property
Declaration
Swift
public func add(content: String)Parameters
contenta content-label for this page
-
Adds a country property. Some shop systems can handle multiple sites. If we have to distinguish them, we set the countryId for the actual shop.
Declaration
Swift
public func add(countryId: String)Parameters
countryIdunique identifier for this country
-
Adds a download property
Declaration
Swift
public func add(download: String)Parameters
downloada download-label for this page
-
Adds a language property. Some shop systems can handle multiple languages. If we have to distinguish them, we set the language.
Declaration
Swift
public func add(langId: String)Parameters
langIdunique identifier for this language
-
Adds a login property. We encrypt (generate md5-Hash) the userId to implement the German “Datenschutzgesetz” in this Method
Declaration
Swift
public func add(login userID: String, result: Int)Parameters
userIDUserID or email - must be a unique identifier
resultresult 0 if succes, positive int for error numbers
-
Adds a property for marketing channel (‘source’). Default value is ‘mobile’. So your traffic is displayed in chapter ‘Mobile’ in econda Monitor.
Please send additional information with the appropriate property.
For the newsletter channel ‘nl’ please use property ‘newsletter’ for submitting additional information pageView.add(marketingChannel : ‘nl’) pageView.add(property : ‘newsletter’, stringValue : ‘newsletter name’)
For the keyword channel ‘kw’ please use property ‘adword’ for submitting additional information. pageView.add(marketingChannel : ‘kw’) pageView.add(property : ‘adword’, stringValue : ‘keyword campaign name’)
For the campaign channel ‘cp’ and all other channels please use property ‘campaign’ for submitting additional information. pageView.add(marketingChannel : ‘cp’) pageView.add(property : ‘campaign’, stringValue : ‘campaign name’)
MarketingChannel is only stored on first page view of a session. All subsequent page views in same session inherit the channel of the first page view.
Marketingchannel ‘mobile’ is not configured by default in econda Analytics. Please contact support (support@econda.de), if you want to use the mobile channel.
Declaration
Swift
public func add(marketingChannel: String)Parameters
marketingChannela marketing channel
-
Adds a orderProcess property.
Declaration
Swift
public func add(orderProcess: String)Parameters
orderProcessa Label to identify the step in the order-process by convention this is a positive int followed by an underscore and the label e.g. “1_Kundendaten”, “2_Zahlungsoptionen”, …
-
Adds a pageId property. pageId is used by Clickmonitor to distinguish Pages
Declaration
Swift
public func add(pageId: String)Parameters
pageIdunique identifier for this page
-
Adds a addToBasket - Event to this page
Declaration
Swift
public func add(productAddToBasket item: BasketItem)Parameters
itemthe BasketItem this Event belongs to
-
Adds a ec_Event property. Stored as array of array. Array contains the eventType = ‘buy’ and all ETBasketItem-Informations.
Declaration
Swift
public func add(productBuy item: BasketItem)Parameters
itemBasketItem
-
Adds a ec_Event property. Stored as array of array. Array contains the eventType = ‘buy’ and all BasketItem-Informations.
Declaration
Swift
public func add(productBuyList basket: Array<BasketItem>)Parameters
basketArray of BasketItems
-
Adds a ec_Event property with custom eventType. Stored as array of array. Array contains the custom eventType and all ETBasketItem-Informations.
Declaration
Swift
public func add(productCustomEvent item: BasketItem, eventType: String)Parameters
itemthe item the EC-Event belongs to
eventTypetype of the event like c_add, c_rmv, view, buy
-
Adds a removeFromBasket - Event to this page
Declaration
Swift
public func add(productRemoveFromBasket item: BasketItem)Parameters
itemthe BasketItem this Event belongs to
-
Adds a ec_Event property. Stored as array of array. Array contains the eventType = ‘view’ and all BasketItem-Informations.
Declaration
Swift
public func add(productView item: BasketItem)Parameters
itemBasketItem this detail View belongs to
-
Adds a custom boolean property
Declaration
Swift
public func add(property key: String, boolValue: Bool)Parameters
keykey
boolValueBool value
-
Adds a custom number property
Declaration
Swift
public func add<T>(property key: String, numberValue: T) where T : NumericParameters
keykey
numberValueValue that follow Numeric-Protocol
-
Adds a custom string property
Declaration
Swift
public func add(property key: String, stringValue: String)Parameters
keykey
stringValueString value
-
Adds a custom array property
Declaration
Swift
public func add(property array: Array<Any>, for key: String)Parameters
arrayarray (Array
) keykey
-
Adds a custom array of arrays property
Declaration
Swift
public func add(property arrays: [Array<Any>], for key: String)Parameters
arraysarray of arrays (Array
) keykey
-
Adds a register property. This method encrypts the userId to implement the German “Datenschutzgesetz”
Declaration
Swift
public func add(register userID: String, result: Int)Parameters
userIDUserID or email must be a unique identifier
resultresult code 0 if success positive int for error numbers
-
Adds a search property
Declaration
Swift
public func add(search queryString: String, numberOfHits: Int)Parameters
queryStringthe search string
numberOfHitsthe number of hits found
-
Adds a siteid property. Some shop systems can handle multiple sites. If we have to distinguish them, we set the siteid for the actual shop.
Declaration
Swift
public func add(siteId: String)Parameters
siteIdsiteId unique identifier for this site
-
Adds a target property.
Declaration
Swift
public func add(target: String, additionalInfo: String, score: Double, targetRule: ETTargetRule)Parameters
targetName for this Target, e.g. download, lottery
additionalInfoadditional Information, e.g. the Name of the downloaded Document
scoreYour value of this target (used for calculation of conversationrate)
targetRuleMethod to use. Only first of session, all or usage of default value configured in econda-monitor
TrackingPageView Class Reference