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
    See more

    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

    billingID

    unique identifier for this bill

    customerID

    unique identifier for this customer

    total

    the total sum of this bill!

    country

    the country of the customer

    cip

    the cip of the customer

    city

    the city of the customer

  • Adds a contact property

    Declaration

    Swift

    public func add(contact: String)

    Parameters

    contact

    type of the contact-form used

  • Adds a content property

    Declaration

    Swift

    public func add(content: String)

    Parameters

    content

    a 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

    countryId

    unique identifier for this country

  • Adds a download property

    Declaration

    Swift

    public func add(download: String)

    Parameters

    download

    a 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

    langId

    unique 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

    userID

    UserID or email - must be a unique identifier

    result

    result 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

    marketingChannel

    a marketing channel

  • Adds a orderProcess property.

    Declaration

    Swift

    public func add(orderProcess: String)

    Parameters

    orderProcess

    a 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

    pageId

    unique identifier for this page

  • Adds a addToBasket - Event to this page

    Declaration

    Swift

    public func add(productAddToBasket item: BasketItem)

    Parameters

    item

    the 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

    item

    BasketItem

  • 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

    basket

    Array 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

    item

    the item the EC-Event belongs to

    eventType

    type 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

    item

    the 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

    item

    BasketItem this detail View belongs to

  • Adds a custom boolean property

    Declaration

    Swift

    public func add(property key: String, boolValue: Bool)

    Parameters

    key

    key

    boolValue

    Bool value

  • Adds a custom number property

    Declaration

    Swift

    public func add<T>(property key: String, numberValue: T) where T : Numeric

    Parameters

    key

    key

    numberValue

    Value that follow Numeric-Protocol

  • Adds a custom string property

    Declaration

    Swift

    public func add(property key: String, stringValue: String)

    Parameters

    key

    key

    stringValue

    String value

  • Adds a custom array property

    Declaration

    Swift

    public func add(property array: Array<Any>, for key: String)

    Parameters

    array

    array (Array)

    key

    key

  • Adds a custom array of arrays property

    Declaration

    Swift

    public func add(property arrays: [Array<Any>], for key: String)

    Parameters

    arrays

    array of arrays (Array)

    key

    key

  • 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

    userID

    UserID or email must be a unique identifier

    result

    result code 0 if success positive int for error numbers

  • Adds a search property

    Declaration

    Swift

    public func add(search queryString: String, numberOfHits: Int)

    Parameters

    queryString

    the search string

    numberOfHits

    the 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

    siteId

    siteId unique identifier for this site

  • Adds a target property.

    Declaration

    Swift

    public func add(target: String, additionalInfo: String, score: Double, targetRule: ETTargetRule)

    Parameters

    target

    Name for this Target, e.g. download, lottery

    additionalInfo

    additional Information, e.g. the Name of the downloaded Document

    score

    Your value of this target (used for calculation of conversationrate)

    targetRule

    Method to use. Only first of session, all or usage of default value configured in econda-monitor