Merge command: [strnews-stattracker ]
Merge variable/item: strNewsStatTracker
Comments:
This generates an entire JS onclick code(snippet) to generate the correct analytics tracker for the n-th news image based on the selected tracker type (and code) as present on the website settings.
Formula:
strStatCall := @If(@Trim(scriptCalls)!="";
@If(
strDocType="link" & @Trim(strLinkLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strLinkLabel);
strDocType="file" & @Trim(strFileLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strFileLabel);
strDocType="database" & strXdocDocType="link" & @Trim(strLinkLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strLinkLabel);
strDocType="database" & strXdocDocType="file" & @Trim(strFileLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strFileLabel);
"");
"");
strStatTracker:=@If(strStatCall=""|head_analyticsComputed="";"";" onClick=\"javascript: "+strStatCall+"\"");
Merge variable/item: strNewsStatTracker
Comments:
This generates an entire JS onclick code(snippet) to generate the correct analytics tracker for the n-th news image based on the selected tracker type (and code) as present on the website settings.
Formula:
strStatCall := @If(@Trim(scriptCalls)!="";
@If(
strDocType="link" & @Trim(strLinkLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strLinkLabel);
strDocType="file" & @Trim(strFileLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strFileLabel);
strDocType="database" & strXdocDocType="link" & @Trim(strLinkLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strLinkLabel);
strDocType="database" & strXdocDocType="file" & @Trim(strFileLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strFileLabel);
"");
"");
strStatTracker:=@If(strStatCall=""|head_analyticsComputed="";"";" onClick=\"javascript: "+strStatCall+"\"");