ePages 6.10 - DE_EPAGES/GoogleAnalytics/API/TLE/GoogleAnalyticsHandler.pm

Package DE_EPAGES::GoogleAnalytics::API::TLE::GoogleAnalyticsHandler

Provides TLE function for localisation of button url

Functions

LocaliseGoogleAnalyticsURL
ShopGoogleAnalyticsParameter

LocaliseGoogleAnalyticsURL

Replaces the placeholder [[locale]] in the URL-String by the given LocaleID. The underscore in the LocaleID will be replaced by a hyphen.

Syntax
#FUNCTION("LocaliseGoogleAnalyticsURL", #URL, #LocaleID)
Example
#FUNCTION("LocaliseGoogleAnalyticsURL", #System.GoogleAnalyticsRegisterURL, #Session.User.Locale.LocaleID)
Input
#url (string)
the url to be adapted
#LocaleID (string)
locale ID

ShopGoogleAnalyticsParameter

This function provides google analytics actions, especially useful to find the pages which should be tracked by google analytics (IsActive = 1).

Syntax
#FUNCTION("ShopGoogleAnalyticsParameter", #Object, #Shop, #VIEWACTION)
Example
#LOCAL("ShopGoogleAnalyticsParameter", #FUNCTION("ShopGoogleAnalyticsParameter",
#Object, #Shop.Object, #VIEWACTION.Object))
#IF(#ShopGoogleAnalyticsParameter.IsActive) ...
Input
$Object (object)
object
$Shop (object)
shop
Return
$VIEWACTION (object)
action object