Merge command: [stratt-stattracker ]
Merge variable/item: strAttStatTracker

Comments:
This generates an entire JS onclick code(snippet) to generate the correct analytics tracker for the n-th attachment based on the selected tracker type (and code) as present on the website settings.

Formula:
scriptCalls := head_scriptCalls; strStatCall := @If(@Trim(scriptCalls)!="" & @Trim(strAttLabel)!="";@ReplaceSubstring(scriptCalls; "[cms-modulename]" : "[cms-labeldata]" ; strModulename : strAttLabel);""); strAttStatTracker:=@If(strStatCall=""|head_analyticsComputed="";"";" onClick=\"javascript: "+strStatCall+"\""); strStatTracker:=strAttStatTracker;