Learn how to add the Einstein Web Recommendations code you create in Einstein Recommendations to your website.
- On the Web Recommendation dashboard, select a page.
- Click the Get Code tab.
-
Copy each piece of code and add it to the
<head>or<body>section of your site.For more information on embedding the code and customizing calls, see Get Code Details in Personalization Builder and Customize the Calls.
Recommendations are live immediately after you apply the code to your webpages. We recommend that you test recommendations to a test environment before you add them to a live site.
- Get Code Details in Einstein Recommendations
Find the JavaScript and HTML code required to render Einstein Recommendations on your page. Copy the code and embed it in your page source for each piece of code. - Customize the Calls
Einstein Recommendations code accepts several different parameters. To initiate an API call, use HTTP or HTTPS to match the address prefix of the page on your site where the call is made.