Use custom HTML

Build your own HTML: how to add link tracking to enable reporting.

If you are building your own HTML from the data returned by the appjson, compact , and full request types when getting the Slot contents using the Content API, then you need to make sure you add some tracking information so Fresh Relevance can track the click-throughs.

The necessary tracking parameters are in the meta JSON field from the response for appjson, compact , and full request types.

Example:

{
  "meta":
    {
        "tmsl":"my-slot-here",
        "tmsb":"abc123",
        "tmrl":"xyz123",
        "tmcs":"yyy000",
        "tmcv":0
    }
}

A description of the metadata fields and their meaning is:

FieldTypeDescription
tmslstringThe Slot ID.
tmsbstringThe SmartBlock ID.
tmsnstringThe SmartBlock name.
tmrlstringThe rule ID.
tmcsstringThe layout ID.
tmcvintegerThe layout revision.
tmtystringThe Slot type (Email / Web).

To track the click-through, you must use the Track a click through call from the Content API.