Collect active data about what products are viewed in the search results, product detail pages, and recommendation.
<isobject
object = Product \\required
view = "none" | "searchhit" | "recommendation" | "setproduct" | "detail" \\required
...
</isobject>
<isobject object="${pdict.Product}"
<isobject object="${LoopProductHit}" view="searchhit">
view = “searchhit”
, the object passed should be of type
ProductHit
.<isobject object="${ProductSearchModel}" view="none">
For specific instructions on implementing this tag for different page types, see Tagging Pages for Data Collection.
The <isobject> tag must be placed so it wraps the ISML for HTML components that represent the product: the product name, image, callout, price, swatches, and other components. The tag must be placed where <script> tags are valid.
This tag can appear any number of times in the same page, with no limit. If the same product appears in multiple tags in the same page, for the same view attribute value, only one is counted. The same product can be a searchhit and also a recommendation, but can't count as two searchhits. Because searchhit and setproduct both count for a product impression, if the same product is contained in the same page as both a searchhit and setproduct, only one impression is counted.
It isn't necessary to wrap the HTML content for every representation of every product that appears in the site. For example, it isn't appropriate to wrap products in pages that show the contents of the cart. As of this release the only side effect of not wrapping a product representation in a template is that analytics data isn't collected in that template. The correct placement of this tag is anywhere an ISML template contains a representation of a product with the intent to merchandize that product for sale on the site. If a product representation is tagged but doesn't exactly match one of the view types listed previously, one of the view types must be chosen that captures analytics data which most closely matches the intent.
In this example, the bonus bonusproduct.isml template is wrapped, so that when a customer views it, the page impression count is incremented.
<isobject object="${pdict.Product}" view="setproduct">
<isinclude template="product/components/subproduct"/>
</isobject>