Marking up a page with tags
For Contexta to understand what data is on a page and which of that data it can use in rules, you need to mark the data up.
You will probably need help from your website developers to do this. Below, we explain how.
Locate the element that contains the data you need.
For example, say you want to create a rule that depends on price. Then you need to mark the place on the page where the price is displayed.
Or say you want to base a rule on the manufacturer – then mark the place on the page where the manufacturer name is displayed.
You mark the element using the “data-contexta” data attribute.
For example, your page code looks like this:
<div class="price">Current price is:230 EUR</div>
We want to create a rule that depends on the product price. For example, show a reminder to the seller if the product price is more than 500 euros. To do that, we need to specify where to get the product price:
<div class="price">Current price is:<span data-contexta="Price">230</span> EUR</div>
This way, we have marked the amount for our product (“230”) and told Contexta to look for it in the “Price” variable.
Note that <span data-contexta="Price"> must appear only once on a page. That is, if the product price is shown in several places on your page, choose just one. If Contexta finds several such elements, it uses the value of the first one it finds.
For Contexta to discover a newly marked-up tag, just open the page with that product. The tag is added to the interface automatically.
Using Schema.org markup
Contexta also automatically recognizes data marked up with Schema.org microdata – Schema.org
All page elements marked up with this microdata are automatically imported into the “Tags” section.