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

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

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
#LocaliseGoogleAnalyticsURL(#URL, #LocaleID)
Example
#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
#ShopGoogleAnalyticsParameter(#Object, #Shop, #VIEWACTION)
Example
#LOCAL("ShopGoogleAnalyticsParameter", #ShopGoogleAnalyticsParameter(
#Object, #Shop.Object, #VIEWACTION.Object))
#IF(#ShopGoogleAnalyticsParameter.IsActive) ...
Input
#Object (object)
object
#Shop (object)
shop
#VIEWACTION (object)
action object