This guide provides the basic workflow for implementing Dynamic Yield on your e‑commerce website, broken down into a required 5-step process:
- Place a script on your site to enable communication with Dynamic Yield.
- Add page-type descriptions called page context to each page on your site.
- Configure required events to report user behaviors, such as purchases and logins.
- Upload and synchronize your product feed.
- Configure your application server to serve DYID cookies to support Safari users.
Dynamic Yield script
To enable communication with Dynamic Yield, and let us gather your users’ online activity and render experiences, begin by placing the Dynamic Yield script on each page of your site.
- In the Dynamic Yield admin, go to Settings › General Settings and copy the code.
- Paste the code snippet synchronously, immediately after the opening tag of every page on your site. Common implementation mistakes to avoid:
- Implementing the script within the <BODY>
- Appending to the <HEAD> from the <BODY>
- Inserting Dynamic Yield Scripts using an external script
- Implementing the script using a Tag Manager
- The implementation status dashboard indicates when the script is properly implemented.
Learn more about the Dynamic Yield Script.
Page context
For Dynamic Yield to deliver the right experiences and gather accurate behavioral data, place a Page Context variable for every page on your site before the Dynamic Yield script in the head tag of your site.
For SPAs: In areas where your site has single-page application functionality, you need to report pageviews and their page context using a dedicated API. See the Single-Page Application Implementation article for more information.