Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
commercecontext:setsegments
Explicitly sets the list of segments that the current visitor belongs to.
Syntax
<commercecontext:setsegments names="segmentlist"/>Parameters
names
(required)- Input parameter, a comma separated list of the segment names to apply
Description
Explicitly sets the list of segments that the current visitor belongs to.
Example
Example 1 sets the visitor segments to explicit values. Example 2 clears all segments. Also states how to revert to picking the segments based on available visitor attribute data.
<commercecontext:setsegments names="ny,wa,mn"/>
Will explicitly set the segments for the current visitor to be ny, wa and mn.<commercecontext:setsegments names=""/>
Will empty the list of segments that the visitor belongs to. Use <commercecontext:calculatesegments/> if required to revert to the segments defined by the available visitor data.
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.