Adding an e-Marketing Spot to a store page (Management Center)

Procedure

  1. Determine on which JSP files the e-Marketing Spot will display. The e-Marketing Spot can be added to multiple JSP files.
  2. Determine where on the JSP file to place the e-Marketing Spot.
  3. Copy the sample e-Marketing Spot JSP snippet into a new JSP file inside of the store Web application.

    The WebServiceeMarketingSpotDisplay.jsp sample snippet is available under the following directory:

    • WC_installdir\samples\Snippets\web\Marketing\Campaigns
    • WebSphere Commerce Developer WCDE_installdir\samples\Snippets\web\Marketing\Campaigns
  4. Customize the sample e-Marketing Spot to fit the layout of your JSP files.
  5. Within the e-Marketing Spot code, give the e-Marketing Spot a name.
    Note: Name e-Marketing Spots descriptively so that the name includes the location and purpose, for example, HomePageRow1Ads, or CheckOutPageRecommendation. This helps to reduce confusion about which page the e-Marketing Spot is on and what it displays. If necessary, add numbers to the name to differentiate between two e-Marketing Spots appearing on the same page. E-Marketing Spot names must be valid Java identifiers. You must use this same name when registering the e-Marketing Spot in the database using the Management Center.
  6. Add the e-Marketing Spot to the JSP file by dynamically including the e-Marketing Spot using the JSTL <c:import> tag structure with any associated parameters. Your code should look similar to the following example:
      <c:import url="${jspStoreDir}include/WebServiceeMarketingSpotDisplay.jsp">
    			<c:param name="emsName" value="ShoppingCartPage" />
    			<c:param name="catalogId" value="${WCParam.catalogId}" />
      </c:import>
    
    If you are not using JSTL, use the <jsp:include> tag. By using a dynamic include tag to add the e-Marketing Spot to the store JSP, the Dynacache feature can be enabled, so that the content of the JSP file, excluding the e-Marketing Spot, will be cached. To avoid running the e-Marketing Spot snippet for each page load, it is recommended that you use the new e-Marketing Spot JSP caching technique based on activity behavior. For more information, see Overview of e-Marketing Spot JSP caching based on activity behavior.
  7. If you require more than one e-Marketing Spot per JSP file, repeat steps 2 through 6.
  8. Create the e-Marketing Spot in the database using the Management Center.

What to do next

To find more information on migrating from Accelerator based marketing to Management Center based migrating, follow the links provided below: