data-track-contentviewclickΒΆ

The data-track-contentviewclick attribute combines the functionality of the following data attributes:

  1. data-track-contentview.
  2. data-track-click.

When using this attribute, both functionalities will be used.

An example of using data-track-contentviewclick can be seen below:

<div data-track-contentviewclick='{
    "viewType": "promotionView",
    "clickType": "promotionClick",
    "promotions": [{
        "name": "Homepage header",
        "creative": "Baseball jacket 50% off"
    }]
}'>
...
</div>

Note

The important difference is that you supply both the viewType and clickType.

The viewType will be used when the element is in the viewport. the clickType will be used when someone clicks on the element.