Activating link tracking

You can instruct XMLDelivery to parse and rewrite HTML links to enable tracking, in a similar way to the Web UI.

Note:

Links within plain text body are parsed and rewritten to enable tracking by default. You must disable this behavior, if it is not required. See Disabling link tracking below for an example.

To activate HTML link tracking, do the following:

  • Add the attribute track="yes" to the appropriate links in the <a> tag/s of your HTML body

    Example:

    <a href="http://www.example.com" track="yes">Description</a>

  • Enable link parsing in the <preferences> element, positioned within the <body> > <html> section of the XML instructions file

    Example:

<body>
<html>
....
<preferences>
<stats>
<links>parse</links>
</stats>
</preferences>

When XMLDelivery parses the HTML and finds links with the track="yes" attribute, it:

  • Applies the transformation to generate tracked links
  • Removes the track attribute from the output

You can disable link tracking for both HTML and text body by setting the <links> tag to off.

The following example shows how to disable the default link tracking behavior for text body content.

Example:

<body>
<text>
....
<preferences>
<stats>
<links>off</links>
</stats>
</preferences>

Note:

You need to use special syntax to teach the parser to correctly identify links with dynamic parts that are common to all recipients. See the Web UI online manual for more details.

Next page:

Disabling the automatic HTML template prettify function


Also see: