public class CampaignBaseTag extends BaseTag
An abstract tag class which generates the data required for an analytics vendor to trigger
a campaign view event. The generated data is placed in a HashMap
object named
paramMap
which the analytics vendor classes can consume.
Following is the structure of the HashMap
object incase the emarketing spot
is showing a marketing experiment. The keys used in the map are
defined in the TagConstants
class.
+--------------------------------------------------------------------------+ | EXPERIMENT_FLAG | A boolean flag which indicates the data | | | with belongs to a marketing experiment | +--------------------------------------------------------------------------+ | EXPERIMENT_NAME | The experiment name | +--------------------------------------------------------------------------+ | EXPERIMENT_VIEWED | Whether the experiment viewed is a test | | | or control element. The value +--------------------------------------------------------------------------+ | ACTIVITY_NAME | The name of the activity to which the | | | experiment belong +--------------------------------------------------------------------------+ | EXPERIMENT_ELEMENT_NAME | The experiment element name | +--------------------------------------------------------------------------+
Following is the structure of the HashMap
object for other web/email
activities. The keys used in the map are defined in the TagConstants
class.
+--------------------------------------------------------------------------+ | EXPERIMENT_FLAG | A boolean flag which indicates the data | | | with belongs to a marketing experiment | +--------------------------------------------------------------------------+ | CAMPAIGN_NAME | The name of the campaign | +--------------------------------------------------------------------------+ | ACTIVITY_NAME | The name of the activity | +--------------------------------------------------------------------------+ | CAMPAIGN_TYPE | The type of campaign. Value 'WEB' for web | | | activities and 'EMAIL' for email | | | activities | +--------------------------------------------------------------------------+ | ESPOT_NAME | The name of the emarketing spot | +--------------------------------------------------------------------------+ | CONTENT_NAME | The name of the content | +--------------------------------------------------------------------------+
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CampaignBaseTag()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Gathers the data required for generating an analytics campaign view event and
places that in an attribute for the vendor specific classes to consume.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getParamMap()
Gets the map which contains the campaign data
|
void |
setActivityName(java.lang.String nameVar)
Sets the activity name that should be used
|
void |
setCampaignName(java.lang.String nameVar)
Sets the campaign name that should be used
|
void |
setControlElement(java.lang.String controlVar)
Sets if the test element is the control element
|
void |
setDatabean(EMarketingSpot databeanVar)
Sets the EMarketingSpot databean to be used for generating the campaign data
|
void |
setEspotData(MarketingSpotDataType espotDataVar)
Sets the MarketingSpotDataType SDO to be used for generating the campaign data
|
void |
setEspotDataJSON(java.util.HashMap espotDataJSONVar)
Sets the MarketingSpotData JSON object to be used to get the data for analysis
|
void |
setExperimentName(java.lang.String nameVar)
Sets the experiment name that should be used
|
void |
setInitiative(java.lang.Integer initiativeVar)
Sets the initiativeId
|
void |
setMarketingSpotName(java.lang.String nameVar)
Sets the e-Marketing spot name that should be used
|
void |
setName(java.lang.String nameVar)
Sets the content name that should be used
|
void |
setTestElementName(java.lang.String nameVar)
Sets the test element name that should be used
|
getBiprovider, getCategoryIdForProduct, getCollator, getCommandContext, getConfig, getNumberFormat, getOptionValue, getStoreId, isDebug, isOptionDisabled, isOptionEnabled, setBiprovider, setDebug
public static final java.lang.String COPYRIGHT
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseTag
EVAL_PAGE
constantjavax.servlet.jsp.JspException
- on any Exceptionpublic void setDatabean(EMarketingSpot databeanVar)
databeanVar
- The EMarketingSpot databeanpublic void setInitiative(java.lang.Integer initiativeVar)
initiativeVar
- The initiativeIdpublic void setEspotData(MarketingSpotDataType espotDataVar)
espotDataVar
- The MarketingSpotDataType SDOpublic void setEspotDataJSON(java.util.HashMap espotDataJSONVar)
espotDataJSONVar
- The MarketingSpotData JSON object to set.public void setName(java.lang.String nameVar)
nameVar
- public void setActivityName(java.lang.String nameVar)
nameVar
- public void setCampaignName(java.lang.String nameVar)
nameVar
- public void setExperimentName(java.lang.String nameVar)
nameVar
- public void setTestElementName(java.lang.String nameVar)
nameVar
- public void setControlElement(java.lang.String controlVar)
controlVar
- public void setMarketingSpotName(java.lang.String nameVar)
nameVar
- public java.util.HashMap<java.lang.String,java.lang.Object> getParamMap()