Click or drag to resize
StrandsScriptGenerator Class
This class is able to generate JavaScript snippets which are required to be rendered on page in order to enable integration with Strands Recommender.
Inheritance Hierarchy
SystemObject
  CMS.StrandsRecommender.Web.UIStrandsScriptGenerator

Namespace: CMS.StrandsRecommender.Web.UI
Assembly: CMS.StrandsRecommender.Web.UI (in CMS.StrandsRecommender.Web.UI.dll) Version: 10.0.0
Syntax
C#
public class StrandsScriptGenerator

The StrandsScriptGenerator type exposes the following members.

Constructors
  NameDescription
Public methodStrandsScriptGenerator
Top
Methods
  NameDescription
Public methodGetCultureSettingsScript
Returns script which sets current culture, so correct item captions can be shown.
Public methodGetCurrencySettingsScript
Returns script which sets current currency, so correct prices can be shown.
Public methodGetCustomizedRendererScript
Returns code which registers custom rendering function and declaration of the rendering function. jQuery templates library has to be included in order for this code to work.
Public methodGetInitializationScript
Returns script which starts execution of the Strands library. Must be included after Strands library.
Public methodGetLibraryIncludeScript
Returns script which includes Strands library file. Returned string contains html script tags.
Public methodGetPurchasedTrackingScript
Returns script which logs "purchased" event to the Strands Recommender.
Public methodGetSearchedTrackingScript
Returns script which logs "searched" event to the Strands Recommender.
Public methodGetUpdateShoppingCartTrackingScript
Returns script which logs "updateschoppingcart" event to the Strands Recommender.
Public methodGetUserLoggedTrackingScript
Returns script which logs "userlogged" event to the Strands Recommender. This script indicates which user is browsing the web. This event needs to be logged at every page user visits (see http://recommender.strands.com/developers/javascript/#ulogin"/). Strands can later associate this user ID with the ID of the newsletter recipient and show appropriate recommendations.
Public methodGetVisitedTrackingScript
Returns script which logs "visited" event to the Strands Recommender.
Top
See Also