data-track-inner-links-onlyΒΆ
Sometimes when you want to track a click on an element, you only want to track clicks on link elements, nested <a>-elements.
To do this, just add the data-track-inner-links-only attribute.
<div data-track-click='{
"clickType": "promotionClick",
"promotions": [{
"name": "Homepage header",
"creative": "Baseball jacket 50% off"
}]
}' data-track-inner-links-only="True">
<img src= "a" />
<a href="#">..</a>
</div>
In the example above, the contentview will be triggered when the whole div is in view.
The clicks will be tracked only when someone clicks on the <a>-element.