Tracking images

The syntax for tracking image links looks like this:

Version 1: without additional link parameters

Copy
${tracking.image(String url, String report-alias)}

Example Tracked images with report-alias "image" – without parameters

Copy
<img src="${tracking.image("http://example/shop/image.png", "image")}">

Version 2: with additional link parameters

Copy
${tracking.image(String url, String params, String report-alias)}

Example Tracked images with report-alias "image" – with parameters

Copy
<img src="${tracking.image("http://example/shop/image.png", "medium=transmail&content=site", "image")}">

Using placeholders

You can use placeholders within the tracking elements (URL, parameters, report alias).

Example Tracked link with report-alias "Product image"

Copy
<img src="${tracking.image(item.ProductImageUrlSmall!, "productimage")}">

Explanations

url The length of the URL is not restricted.

report-alias – The report-alias serves as a descriptive name for the link. It can be used in conjunction with reporting in a future version of Inxmail Commerce.

A report-alias must be specified. If you do not wish to use a report-alias, you need to insert two inverted commas, one directly after the other. In this case, the system uses the URL as the report-alias, meaning that the URL and report-alias will then be identical.

The maximum length of the report-alias is 768 characters. Characters beyond the 768-character limit will be removed.

params – You can specify additional parameters if need be. When the link is generated, the parameters are appended to the URL either with a ? or with a &. Here the system behaves as follows: If the URL already contains parameters, a & is used. If the URL does not contain any parameters, a ? is used.

The length of the parameters is not restricted.

For information on which parameters to use, see the documentation for your tracking software, for example, econda or Google Analytics.