On SiteGenesis

This document outlines adding the Nosto tagging into SiteGenesis store front. Below you can find a list of template files and a code snippet what to add to a specific template file. The paths for template files given below are based on SiteGenesis so you must make sure they to add the code snippets in their relevant cartridge.

htmlhead.isml

Adds Nosto include script to all pages (html head).

Path: SiteGenesis_core/cartridge/templates/default/components/header/htmlhead.isml

<iscomment>NOSTO Script Tag</iscomment>
<isinclude template="nostoHeaderScript"/>
image

pt_storefront.isml

Adds page type tagging to the home page / front page of a store.

Path: SiteGenesis_core/cartridge/templates/default/content/home/pt_storefront.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getHomePageTypeTag()}" encoding="off"/>
image

pt_cart.isml

Adds page type tagging to the cart page.

Path: SiteGenesis_core/cartridge/templates/default/checkout/cart/pt_cart.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCartPageTypeTag()}" encoding="off"/>
image

footer.isml

Adds cart tagging to all pages.

Path: SiteGenesis_core/cartridge/templates/default/components/footer/footer.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCustomerTags(pdict.currentCustomer)}" encoding="off"/>
<isprint value="${nostoHelper.getCartTag()}" encoding="off"/>
image

pt_productdetails.isml

Adds product tagging to product detail pages.

Path: SiteGenesis_core/cartridge/templates/default/product/pt_productdetails.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getProductTags(pdict.Product)}" encoding="off"/>
image

pt_categorylanding.isml

Adds category tagging into category pages.

Path: SiteGenesis_core/cartridge/templates/default/search/pt_categorylanding.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCategoryTags(pdict.CurrentHttpParameterMap.cgid)}" encoding="off"/>
image

pt_productsearchresult.isml

Adds category tagging to search results page.

Path: SiteGenesis_core/cartridge/templates/default/search/pt_productsearchresult.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCategoryTags(pdict.CurrentHttpParameterMap.cgid)}" encoding="off"/>
image

pt_orderconfirmation.isml

Adds order tagging to order confirmation page.

Path: SiteGenesis_core/cartridge/templates/default/checkout/pt_orderconfirmation.isml

<isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getOrderTags(pdict.Order)}" encoding="off"/>
image