SFCC Cartridge
Front-end Integration
5 min
javascript integration the full js snippet for both production and sandbox environments can be found here https //portal forter com/api/services and apis/javascript integration the forter javascript snippet should be injected into the site footer section for all web pages the following site template has been built int forter/cartridge/templates/default/custom/fortersnippetjs isml when you add your site id and secret key to your cartridge settings, this isml template will be configured please let your forter onboarding team know once this has been added, so that they can complete the enablement remotely mfra javascript include the forter javascript snippet the forter javascript snippet should be injected into the checkout isml and page isml templates in your existing app storefront base the instructions and code snippets are included below 1\) update the checkout isml template update the checkout isml template with the forterjs snippet the exact path in the forter sfcc cartridge is int forter mfra/cartridge/templates/default/common/layout/checkout isml this extends the app storefront base/cartridge/templates/default/common/layout/checkout isml template with the full checkout isml file is included below full checkout isml template < add the below line of code /> < end /> 2\) update the page isml template you should include the page isml template with the forterjs snippet the exact path in the forter sfcc cartridge is int forter mfra/cartridge/templates/default/common/layout/page isml this extends the app storefront base /cartridge/templates/default/common/layout/page isml html template with the following code the full page isml file is included below full page isml file