Using custom HTML

Building 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 will 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 need to use the Track a click through call from the Content API