Merge command: [strnews-stattrackeronly ]
Merge variable/item: strStatTrackeronly
Comments:
This generates a JS function call (only) to generate the correct analytics tracker for the n-th news item based on the selected tracker type (and code) as present on the website settings.
Formula:
scriptCalls := head_scriptCalls;
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);
"");
"");
strStatTrackeronly:=@If(strStatCall=""|head_analyticsComputed="";"";" "+strStatCall);
Merge variable/item: strStatTrackeronly
Comments:
This generates a JS function call (only) to generate the correct analytics tracker for the n-th news item based on the selected tracker type (and code) as present on the website settings.
Formula:
scriptCalls := head_scriptCalls;
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);
"");
"");
strStatTrackeronly:=@If(strStatCall=""|head_analyticsComputed="";"";" "+strStatCall);