menu

SFRA / Server-side JS / Namespace: ConsentTracking

ConsentTracking

Methods

(static) Base/ConsentTracking-Check()

ConsentTracking-Check : This endpoint is called every time a storefront page is rendered

Parameters:
Type Description
middleware

consentTracking.consent

category

sensitive

renders

isml

serverfunction

get

Source:

(static) Base/ConsentTracking-GetContent()

ConsentTracking-GetContent : This endpoint is called to load the consent tracking content

Parameters:
Type Description
querystringparameter

cid - The value of this is a string. This is the internal ID of the content asset used for consent message

category

sensitive

renders

isml

serverfunction

get

Source:

(static) Base/ConsentTracking-SetSession()

ConsentTracking-SetSession : This endpoint is called when the shopper agrees/disagrees to tracking consent

Parameters:
Type Description
querystringparameter

consent - The value of this is a boolean. If the boolean value is true, tracking is enabled for the current session; if false, tracking is disabled

category

sensitive

returns

json

serverfunction

get

Source: