Skip to main content
RichRelevance

Email Integration Sample HTML Code

An example of an HTML recommendation block to be inserted into an ESP campaign.

NOTE: This Email Integration method is not available to new clients. 

Details

Below are some examples of HTML recommendation blocks to be inserted on the ESP campaign.

Sample 1

Transactional Email 

These emails are typically event-driven emails such as: order confirmation, ship confirmation, etc. The campaigns for these emails are typically set up once and may have a fixed recommendation layout. (The example below shows a horizontal recommendation placement with three products.) The RichRelevance team will work with you in design and testing. These are the parameters you would typically set up for transactional emails:

  • API Key
  • UserID
  • Date
  • CampaignID
  • ZoneName
  • ProductIDs
  • OrderID (when the transaction is in relation to an order)

Below is an example of {rr} HTML that your {rr} client services team will provide. Your ESP will replace [placeholder values] with dynamic data. Currently the server rm.recs.richrelevance.com is used for US customers, whilst EU customers have to use eurm.recs.richrelevance.com.

<map name="rr_img_map">
<area coords="178,5,311,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&o=[ORDERID]&seedProductIds=[PRODUCTIDS]&date=[YYYY-MM-DD]&lid=1">
<area coords="317,5,449,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&o=[ORDERID]&seedProductIds=[PRODUCTIDS]&date=[YYYY-MM-DD]&lid=2">
<area coords="456,5,589,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&o=[ORDERID]&seedProductIds=[PRODUCTIDS]&date=[YYYY-MM-DD]&lid=3">
</map>
<img usemap="#rr_img_map" border="0" src ="http://rm.recs.richrelevance.com/rrmail/imgreq?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&o=[ORDERID]&seedProductIds=[PRODUCTIDS]&date=[YYYY-MM-DD]" width="593" height="193" />

Promotional Email

Promotional emails are typically bulk emails focused on specific category, brand, coupons, etc. The RichRelevance team will work with you in design and testing. These are the parameters you would typically setup for promotional emails:

  • API Key
  • UserID
  • Date
  • CampaignID
  • ZoneName
  • ProductIDs (as applicable)
  • CategoryIDs (as applicable)
  • Filters (brand/price etc. where applicable)
  • Strategy sets (as needed)

Below is an example of {rr} HTML that the {rr} client services team will provide. Your ESP will replace [placeholder values] with dynamic data. Currently the server rm.recs.richrelevance.com is used for US customers, whilst EU customers have to use eurm.recs.richrelevance.com.

<map name="rr_img_map">
<area coords="178,5,311,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&seedCategoryIds=[CATEGORYIDS]&date=[YYYY-MM-DD]&lid=1">
<area coords="317,5,449,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&seedCategoryIds=[CATEGORYIDS]&date=[YYYY-MM-DD]&lid=2">
<area coords="456,5,589,188" shape="rect" href="http://rm.recs.richrelevance.com/rrmail/rmclick?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&seedCategoryIds=[CATEGORYIDS]&date=[YYYY-MM-DD]&lid=3">
</map>
<img usemap="#rr_img_map" border="0" src ="http://rm.recs.richrelevance.com/rrmail/imgreq?a=[API_KEY]&version=2&zoneName=[PLACEMENT]&campaignId=[CAMPAIGNID]&userId=[USERID]&seedCategoryIds=[CATEGORYIDS]&date=[YYYY-MM-DD]" width="593" height="193" />