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
Copy <iscomment>NOSTO Script Tag</iscomment>
<isinclude template="nostoHeaderScript"/>
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
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getHomePageTypeTag()}" encoding="off"/>
pt_cart.isml
Adds page type tagging to the cart page.
Path: SiteGenesis_core/cartridge/templates/default/checkout/cart/pt_cart.isml
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCartPageTypeTag()}" encoding="off"/>
Adds cart tagging to all pages.
Path: SiteGenesis_core/cartridge/templates/default/components/footer/footer.isml
Copy <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"/>
pt_productdetails.isml
Adds product tagging to product detail pages.
Path: SiteGenesis_core/cartridge/templates/default/product/pt_productdetails.isml
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getProductTags(pdict.Product)}" encoding="off"/>
pt_categorylanding.isml
Adds category tagging into category pages.
Path: SiteGenesis_core/cartridge/templates/default/search/pt_categorylanding.isml
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCategoryTags(pdict.CurrentHttpParameterMap.cgid)}" encoding="off"/>
pt_productsearchresult.isml
Adds category tagging to search results page.
Path: SiteGenesis_core/cartridge/templates/default/search/pt_productsearchresult.isml
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getCategoryTags(pdict.CurrentHttpParameterMap.cgid)}" encoding="off"/>
pt_orderconfirmation.isml
Adds order tagging to order confirmation page.
Path: SiteGenesis_core/cartridge/templates/default/checkout/pt_orderconfirmation.isml
Copy <isscript>
var nostoHelper = require('int_nosto/cartridge/scripts/helpers/nostoHelper').getNostoHelper();
</isscript>
<isprint value="${nostoHelper.getOrderTags(pdict.Order)}" encoding="off"/>