Dynamic Yield

Dynamic Yield

E-commerce performance optimization platform that personalizes website content and product recommendations. The Dynamic Yield script fetches personalization configurations and injects modified page elements — product carousels, banners, pricing — targeted to visitor segments. Tracks interaction events to refine recommendation models.

Overview

Dynamic Yield is an AI-powered experience optimization platform owned by Mastercard (acquired in 2023, having previously been owned by McDonald's). It enables e-commerce and digital businesses to personalize website content, product recommendations, and page layouts in real time based on visitor behavioral profiles, segment membership, and machine learning predictions. The platform is used by major retailers, travel brands, and financial services companies to run A/B tests, multivariate experiments, and algorithmic personalization at scale — modifying what each visitor sees on the page based on who they are and what they have done previously.

What This Script Does

Initialization and configuration fetch: Dynamic Yield's script loads from cdn.dynamicyield.com (primary) or a site-configured first-party proxy domain. On page load, the script makes a synchronous or asynchronous request to Dynamic Yield's API (rcom.dynamicyield.com or st.dynamicyield.com) to fetch the current visitor's personalization configuration — which campaigns are active, which experience variants apply to this visitor, and which recommendation algorithms to invoke.

Visitor identity and cookies:

  • _dyid (2-year expiry, first-party) — the primary visitor identifier, a UUID assigned on first visit that persists across sessions and is the foundation for all behavioral profiling
  • _dyid_server (2-year expiry, first-party) — server-side counterpart to _dyid for cross-channel attribution
  • _dyjsession (session-scoped) — current session identifier for grouping events within a visit
  • _dy_geo (session-scoped) — stores IP-derived geolocation for experience targeting by location
  • _dy_csc (session-scoped) — experiment and campaign assignment cache for the current session

Behavioral event collection: The SDK tracks page views (URL, category, page type), product views (product ID, SKU, price, category, brand, availability), cart interactions (add, remove, update with product details), checkout steps, and completed purchases (order ID, revenue, items). These events are transmitted to Dynamic Yield's servers and update the visitor's behavioral profile in near real time.

Content personalization: Based on the visitor's profile and active campaigns, Dynamic Yield injects modified DOM content: alternative hero banners, personalized product carousels (algorithmically ranked based on affinity scores), A/B test variants (different button text, layouts, pricing display), and targeted promotional messages. Content modifications happen client-side after the base page loads.

Machine learning models: Product recommendation algorithms (collaborative filtering, content-based filtering, trending items) use the visitor's event history to rank and select which products appear in recommendation widgets. Model inference happens server-side; results are delivered in the configuration fetch response.

Cross-device and cross-channel: Dynamic Yield supports cross-device identity resolution through hashed email matching when users are identified, extending behavioral profiles across web and app sessions.

Consent & Compliance

Dynamic Yield spans functional, analytics, and marketing consent categories. The consent analysis is complex because the platform performs three distinct functions with different legal bases:

A/B testing without behavioral profiling: Simple layout experiments with random bucket assignment (no cookie-based persistence across sessions) could potentially run on legitimate interest. However, Dynamic Yield's default configuration uses the persistent _dyid cookie for experiment continuity, which requires consent.

Analytics: Behavioral event collection (page views, product interactions, purchase events) is analytics processing requiring consent under ePrivacy for the cookie storage and under GDPR for the profile enrichment.

Personalization and recommendation targeting: This is the most privacy-intensive component. Building behavioral profiles across sessions using _dyid (2-year persistent identifier) and using ML models trained on that behavioral history to modify content constitutes profiling under GDPR Article 4(4). This requires explicit consent.

Under the ePrivacy Directive, all five named cookies (_dyid, _dyid_server, _dyjsession, _dy_geo, _dy_csc) require consent before being set, as none qualify for the strictly necessary exemption. Under CCPA/CPRA, behavioral profiling for personalization constitutes personal information processing that must be disclosed, and sharing with Dynamic Yield (a Mastercard entity) must be addressed in privacy policies.

Dynamic Yield is headquartered in New York. EU/EEA data transfers rely on Standard Contractual Clauses. As part of Mastercard, Dynamic Yield is subject to Mastercard's global privacy program and DPA framework.

Should You Block This Without Consent?

Conditional. Dynamic Yield's default configuration immediately sets 2-year persistent tracking cookies and begins building behavioral profiles on page load. In this configuration it must be blocked until consent is obtained. If the platform can be configured to run only non-persistent A/B tests without behavioral profiling for anonymous visitors, a legitimate interest basis may apply for that narrow use — but this requires careful platform configuration and legal review. In standard deployment, require analytics and marketing consent before loading.

Visit website

Consent Categories

Functional
Analytics
Marketing

Also Known As

Dynamic YieldDYecommerce personalization consentproduct recommendations cookiesA/B testing personalizationMastercard Dynamic Yield

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (1)

dynamicyield.comAnalytics

Frequently Asked Questions

Does Dynamic Yield require consent?

Yes for standard deployments. Dynamic Yield sets a 2-year persistent _dyid cookie on page load and immediately begins behavioral profiling for personalization and A/B testing. Analytics and marketing consent are both required before loading in typical configurations.

What cookies does Dynamic Yield set?

Dynamic Yield sets _dyid (2-year visitor UUID), _dyid_server (cross-channel counterpart), _dyjsession (session grouping), _dy_geo (IP-derived location), and _dy_csc (campaign assignment cache). Behavioral events — product views, cart actions, purchases — are transmitted to update ML recommendation models in near real time.

How does ConsentStack handle Dynamic Yield?

ConsentStack blocks Dynamic Yield until the visitor grants analytics and marketing consent, preventing the 2-year tracking cookie from being set and stopping behavioral profiling. ConsentStack can be configured to require both consent categories before releasing the script to initialize.

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Dynamic Yield

ConsentStack automatically detects and manages Dynamic Yield trackers so your site stays compliant with global privacy regulations.