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.
Activating HTML link tracking
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 bodyExample:
<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 fileExample:
....parse
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
Disabling link tracking
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
Related Pages:
- Newsletter
- Recipients section
- Delivery section
- Notes section
- Message section
- Building a campaign with XMLDelivery
Also see:
- Filtering and added recipients
- Disabling the automatic HTML template prettify function
- Disabling the automatic HTML-entity unescape function
- Enabling ERB evaluation when unescape is disabled
- Contactlab section
- Using XMLDelivery
- Does XMLDelivery match your needs?
- Setting up XMLDelivery
- Working examples