---
schema_version: "1"
id: 5ffc0e8836fafe3bc94a1f8e395d9acbf55806052c07cdd3da462db1c9ff8a91
title: Get Code Procedures
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pb_get_code_procedures.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pb_get_code_procedures.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 106e75c7689c32e7f95e68fe2c4b3fd3cad852a85a3eef66b0204d7c50611bd4
description: Learn how to add the Einstein Web Recommendations code you create in Einstein Recommendations to your website.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Get Code Procedures

Learn how to add the Einstein Web Recommendations code you create in Einstein Recommendations to your website.

1. On the Web Recommendation dashboard, select a page.
2. Click the **Get Code** tab.
3. 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](https://help.salesforce.com/s/articleView?id=mktg.mc_pb_get_code_details.htm&release=264.0.0&type=5 "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.") and [Customize the Calls](https://help.salesforce.com/s/articleView?id=mktg.mc_pb_customize_the_calls.htm&release=264.0.0&type=5 "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.").

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](https://help.salesforce.com/s/articleView?id=mktg.mc_pb_get_code_details.htm&release=264.0.0&type=5)**  
    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](https://help.salesforce.com/s/articleView?id=mktg.mc_pb_customize_the_calls.htm&release=264.0.0&type=5)**  
    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.