Migrate > Take the first steps after WebSphere Commerce migration > Migrating marketing > Migrating marketing from Management Center v6 Feature Pack 3 or 4 to Management Center v7
Review the latest sample e-Marketing Spot JSP snippet for Management Center
If the site has already been using Management Center Version 6 Feature Pack 3 or 4 for marketing management, the e-Marketing Spot JSP code on the store pages will work correctly with Management Center v7 Marketing tool. While you are not required to make any changes to the existing e-Marketing Spot JSP code, this procedure covers some optional steps to review new customization examples and remove some unnecessary code from existing e-Marketing Spot JSP code.
Procedure
- Review some customization examples embedded in the latest sample e-Marketing Spot JSP snippet for Management Center:
- Navigate to the latest sample e-Marketing Spot JSP snippet:
- WCDE_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
- WC_INSTALL\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
- Open the WebServiceeMarketingSpotDisplay.jsp file in an editor.
- Review the examples that have been added as comments in the file. The examples illustrate some potential customization functionality for e-Marketing Spots.
To reach the first example, search for the following string:
<%-- Example of specifying the customer is viewing a particular product.
Additional examples in the file provide optional code snippets for:
- Specify the customer is viewing a set of products
- Include a value from a specific cookie
- Include all cookies
- Include substitution variables
- Close the WebServiceeMarketingSpotDisplay.jsp file.
- Optional: Remove some lines of code that are no longer required in the existing e-Marketing Spot snippets on the store pages:
- Navigate to the include directory at the following location in the development environment:
WCDE_installdir/workspace/Stores/WebContent/StoreDir/include/
- Create a backup copy of the eMarketingSpotDisplay.jsp file.
- Open the eMarketingSpotDisplay.jsp file.
- Remove the following lines of code from the file because they are no longer used:
<%-- referral url --%> <wcf:param name="DM_RefUrl" value="${cookie.REFERRER.value}" /> <%-- marketing context name value pair parameters --%> <c:forEach var="aPair" items="${marketingContext.nameValuePairs}"> <wcf:param name="${aPair.key}" value="${aPair.value}" /> </c:forEach>
- Save and close the updated eMarketingSpotDisplay.jsp file.
- Remove the same lines of code from any additional e-Marketing Spot snippets on the store pages. For example, some sample stores also include the StoreCatalogProductESpot.jsp file.
- Test the store to ensure that the updated e-Marketing Spot JSP code is working properly.
- Deploy all updated JSP files.
Previous topic:
Configure the site to support optional Management Center marketing features