Skip to main content
Model available for use in the Templates, and also returned by PureClarity in server-side requests

Properties

url
string
The location of the image file
The link location of where a user should be taken if they click the image
altText
string
The Alt Text attribute for the image
type
string
set to staticImage
clickEvt
string
The JavaScript function to be executed on mouse down over the image element. NOTE: This is required to track when users click through on a product. If this is omitted then reporting will be inaccurate.
html
string
[Serverside mode only] The html rendered version based on the Template

Example

{
  "url": "https://example.com/images/promo-banner.jpg",
  "linkLocation": "https://example.com/promotions/spring-sale",
  "altText": "Spring Sale - 30% Off Everything",
  "type": "staticImage",
  "clickEvt": "_pc('track','click',{zoneid:'HP02',campaignid:'789'})",
  "html": "<div class='pc-image'><img src='...' /></div>"
}