ePages 7.0.0 - DE_EPAGES/EasyMarketing/API/Snippet/Replacer.pm

Package DE_EPAGES::EasyMarketing::API::Snippet::Replacer

Replaces values in easymarketing snippets.

Example
use DE_EPAGES::EasyMarketing::API::Snippet::Replacer;
my $Replacer = DE_EPAGES::EasyMarketing::API::Snippet::Replacer->new();
my $SnippetWithReplacedValues = $Replacer->processFacebookConversionTracker($Snippet, $BasketValue,$Currency );

Functions

new
processFacebookConversionTracker
processFacebookLeadTracker
processGoogleConversionTracker
processGoogleLeadTracker
processRemarketingSnippet

new

constuctor

Syntax
new();
Return
$self (DE_EPAGES::EasyMarketing::API::SnippetReplacer)
self

processFacebookConversionTracker

Manages all values which should be replaced in the facebook snippet

Syntax
processFacebookConversionTracker( $Snippet, $BasketValue, $Currency );
Input
$Snippet (String)
snippet which should be changed
$BasketValue (String)
the value of basket
$Currency (String)
the currency in Iso-code format (e.g.EUR)
Return
$Snippet (String)
changed snippet

processFacebookLeadTracker

manage all values which should be replace in the facebook snippet

Syntax
processFacebookLeadTracker( $Snippet );
Input
$Snippet (String)
snippet which should be changed
Return
$Snippet (String)
changed snippet

processGoogleConversionTracker

manage all values which should be replace in the google snippet

Syntax
processGoogleConversionTracker( $Snippet, $BasketValue, $Currency );
Input
$Snippet (String)
snippet which should be changed
$BasketValue (String)
the value of basket
$Currency (String)
the currency in Iso-code format (e.g.EUR)
Return
$Snippet (String)
changed snippet

processGoogleLeadTracker

manage all values which should be replace in the google snippet

Syntax
processGoogleLeadTracker( $Snippet );
Input
$Snippet (String)
snippet which should be changed
Return
$Snippet (String)
changed snippet

processRemarketingSnippet

manage all values which should be replace in the remarketing snippet

Syntax
processRemarketingSnippet( $Snippet, $GoogleProductId, $GooglePageType, $GoogleBasketValue );
Input
$Snippet (String)
snippet which should be changed
$GoogleProductId (String)
List with the ProductId
$GooglePageType (String)
Pagetype of the current Object
$GoogleBasketValue (String)
the value of basket
Return
$Snippet (String)
changed snippet