ePages 7.17.0 - DE_EPAGES/GoogleAnalytics/API/TLE/UniversalAnalyticsHandler.pm

Package DE_EPAGES::GoogleAnalytics::API::TLE::UniversalAnalyticsHandler

Handle tracking with GoogleAnalytics.

Functions

IsUAEcommerceApplicable
UAAutoLinkerDomain
UAPageView

IsUAEcommerceApplicable

Determines if the combination of the current Object and ViewAction should be used with the UniversalAnalytics' e-commerce functionality, namely track a completed order.

Syntax
#IsUAEcommerceApplicable(#Object, #ViewActionAlias)
Example
#IF(#IsUAEcommerceApplicable(#Object, #INPUT.ViewAction)) ... #ENDIF
Input
$Processor
$aParams (ref.array)

  • Object | current object | object
  • ViewActionAlias | view action alias | string
Return
$IsApplicable (boolean)
use UA's ecommerce functionality?

UAAutoLinkerDomain

If the shop's using two domains (shop domain and, for SSL, provider domain), returns the domain which isn't used in the current request. Google Analytic's auto linker will take care for the correct function.

Syntax
#UAAutoLinkerDomain(#ShopObject, #Host)
Example
#UAAutoLinkerDomain(#Shop.Object, #INPUT.HTTP_HOST)
Input
$Processor
$aParams (ref.array)

  • Shop | shop object | object
  • Host | request host | string
Return
$AutoLinkerDomain (string)
domain which should be auto-linked

UAPageView

Provides page-view-specific info for the current object, with special treatment for basket and checkout pages.

Syntax
#UAPageView(#Object, #ViewActionAlias)
Example
#LOCAL("PageView", #UAPageView(#Object, #INPUT.ViewAction)
    #PageView.Path
    #PageView.Title
#ENDLOCAL
Input
$Processor
$aParams (ref.array)

  • Object | current object | object
  • ViewActionAlias | current view action | string
Return
$hPageView (ref.hash)
info hash for page view of the current object, keys:
  • Path | easy-to-read object path | object
  • Title | object title | string