# Web / Mobile Web

Your website, on desktop and on phones, is where every Onsite placement runs today. The Web SDK turns a container on a page into an embed or a placement, and one script serves both screen sizes.

![Diagram: setting up Onsite on Web / Mobile Web in 5 steps: Register your placements, Build a placement, Add the Web SDK and the placement, Pass page context, Measure engagement.](https://cdn.sanity.io/images/lnrtvsvr/development/274599221c3dc0e5995c26bd96a15abd16b0858b-320x180.svg)

## Product use cases in this environment

| Use case | Product | How it shows up here |
| --- | --- | --- |
| Vertical Video Player Placement | Onsite | A 9:16 swipe feed ranked for the page and the viewer, the default for content pages and mobile. On a phone, give it most of the screen height. |
| Horizontal Video Player Placement | Onsite | A 16:9 player with a playlist rail, for in-article and desktop layouts where a vertical feed would fight the page. |
| Audio + Video Dynamic Player | Onsite | Plays a podcast or audio episode with Studio-generated visuals, and switches between audio-first and video-first by page, device, and sound state. |
| Keywords Player | Onsite | Appears only where the page's text matches the keywords, entities, or products you define. |
| Shoppable Carousel Placement | Onsite | Each video carries products with price, availability, and a buy or add-to-cart action. |
| Community Wall Placement | Onsite | Creator and member posts by group, with reactions, replies, and pinned posts. |
| Live & Q&A Placement | Onsite | A scheduled live player with questions, polls, and replay. |
| Sticky Mini-Player | Onsite | Docks to a corner and keeps playing as the viewer scrolls or moves between pages. |
| Contextual Continuity | Onsite | What a viewer watched on one page shapes the next placement they see. |
| Placement Experiments and Holdouts | Onsite | A/B tests and standing holdouts on each placement. |
| Sponsored posts, takeovers, and ads | Monetize | Sponsored posts blend into feed placements, takeovers fill a placement, and the SDK renders ad slots and in-stream breaks from your preset. |
| Player controls | Control | Autoplay, sound, captions, share and follow buttons, and the sticky player, set per platform, page type, or placement. |
| Partner content in your placements | Network | Content that partner brands share runs in your embeds and placements, without importing it. |
| Clips for every placement size | Studio | Studio cuts clips from long-form video and re-cuts a published video for another placement size. |
| Chat beside the video | Supervised Intelligence | Viewers ask about what they are reading or watching on article, event, and video pages. |
| Rows and pages built for you | Marketplace | Build My Destination builds video rows, article placements, and pages from your videos, stories, and events. |
| The same feed, extended | Offsite | The feed you run on your site is the feed Offsite extends to the partners you approve. |

## Limitations

- Browsers allow autoplay only with the sound off, so playback starts muted and the viewer taps to unmute.
- The Web SDK adds no text or structured data to your page, so crawlers read your videos only on your hosted social experience.
- Push notifications and the grid layout are not available on the web.
- Generative Contextual Continuity works on desktop, and with limitations on mobile web.
- Every container on a page uses the same brand's embeds and placements, because sign-in follows the first one.
- Targeting has caps: up to 50 key-value entries, 100 keywords of up to 256 characters each, and a `page_url` of up to 2,048 characters. Larger values are dropped.
- The Live & Q&A Placement is coming soon.
- The sticky mini-player docks as a 180 × 300 px player.

## Set it up

1. **Register your placements.** Give each page type its placements on the Hierarchical Grid. Read: [Register your placements on the Hierarchical Grid](https://begenuin.com/developers/browse-by-products/onsite/register-placements).
2. **Build a placement.** Choose the style, sections, feed type, and variables in your Business Account. Read: [Build a placement](https://begenuin.com/developers/browse-by-products/onsite/how-a-brand-can-get-started-with-placements-in-business-account).
3. **Add the Web SDK and the placement.** Load the script, then initialize the placement with its placement ID and style ID. Read: [Embed the Genuin Web SDK on your digital properties](https://begenuin.com/developers/developer-resources/sdk/how-do-you-embed-and-configure-the-genuin-web-sdk-on-your-website), [Add a Genuin placement to your digital properties](https://begenuin.com/developers/developer-resources/sdk/how-do-you-configure-the-genuin-web-sdk-placement-on-your-website).
4. **Pass page context.** Send the page, user, and location context each placement expects. Read: [Deliver contextual feeds with page, user, and location context](https://begenuin.com/developers/developer-resources/sdk/contextual-embeds-how-they-work-and-how-to-configure-them).
5. **Measure engagement.** Read watch time, lift, and cohorts for each placement. Read: [Measure engagement: watch time, lift, and cohorts](https://begenuin.com/developers/browse-by-products/control/measure-engagement-watch-time-lift-and-cohorts).

## Example

- **Business:** a travel publisher.
- **Page:** destination guides, read on desktop and on phones.
- **Setup:** Under **Grow** > **On Site** > **Placement**, a style draws from the Travel category through **Tie to Categories**, with a **Placement layout** of **Carousel** and a **Feed Type** of **Community Feed**. On **Configure View**, **Autoplay Video** is on. On **Implementation Guide**, **Custom Context** is ticked. The guide template loads the script once and passes the destination and the guide's main topics as `page_context`.
- **What viewers see:** a row of 9:16 videos under the intro that starts playing, muted, when it scrolls into view. Tapping a video opens the expanded view with the engagement icons you turned on under **Expand View**.
- **What you measure:** the placement's analytics and the **Report** page, plus the `onPlay` and `onAnalyticsTrack` events your developers forward with `window.genuin.on`.

## Best practices

- Write `page_context` in the words your videos use, such as "Lisbon food markets, tram 28". A contextual feed matches it against each video's description first, then its generated description and transcript, and weighs that match at 80% against 20% for recency.
- Place the container below the first screen of content. The SDK renders it when it comes within 200 px of the viewport, so it loads only as the reader gets close.
- On a single-page site, call `window.genuin.update` with the new `page_context` on every route change, so the feed follows the page.
- Give every container on a page its own id. The SDK warns in the console when two containers share an id, and they may not initialize.

## Developer resources

- [Embed the Genuin Web SDK on your digital properties](https://begenuin.com/developers/developer-resources/sdk/how-do-you-embed-and-configure-the-genuin-web-sdk-on-your-website)
- [Add a Genuin placement to your digital properties](https://begenuin.com/developers/developer-resources/sdk/how-do-you-configure-the-genuin-web-sdk-placement-on-your-website)
- [Deliver contextual feeds with page, user, and location context](https://begenuin.com/developers/developer-resources/sdk/contextual-embeds-how-they-work-and-how-to-configure-them)
- [Customize the video player](https://begenuin.com/developers/browse-by-products/control/how-does-a-brand-customize-the-genuin-video-player-controls)
- [Embed configuration reference](https://begenuin.com/developers/developer-resources/sdk/embed-configuration-reference)
- [Receive engagement events in your own analytics](https://begenuin.com/developers/developer-resources/sdk/receive-engagement-events-in-your-own-analytics)

## Related

- [How Onsite works](https://begenuin.com/developers/browse-by-products/onsite/onsite-what-it-does-and-where-to-start)
- [Marketers & growth: questions and answers](https://begenuin.com/developers/find-your-use-cases/marketers-growth-questions-and-answers)
- [Generate an embed code](https://begenuin.com/developers/browse-by-products/onsite/how-do-brands-generate-embed-codes-from-business-account)
- [How embeds work](https://begenuin.com/developers/browse-by-products/onsite/how-can-you-embed-your-brand-community-on-your-website-using-genuin-embeds)
- [Brand Feed embed](https://begenuin.com/developers/browse-by-products/onsite/what-is-the-brand-feed)
- [Embedded video controls](https://begenuin.com/developers/browse-by-products/onsite/how-can-brands-manage-overlay-components-and-controls-for-embedded-content)
- [Map placements to the journey](https://begenuin.com/developers/browse-by-products/onsite/how-can-contextual-feed-placements-transform-the-consumer-journey-across-your-website-or-app)
- [Contextual Continuity embeds](https://begenuin.com/developers/browse-by-products/onsite/what-are-contextual-continuity-embeds)
- [Generative Contextual Continuity](https://begenuin.com/developers/browse-by-products/onsite/what-are-generative-contextual-continuity-embeds)
- [Embed support by platform](https://begenuin.com/developers/browse-by-products/onsite/cross-platform-embeds-supported-specs-integrations-and-limitation)
- [Pick your first player experience](https://begenuin.com/developers/browse-by-products/onsite/pick-player-experience)
- [Onsite: contextual placements across homepage, category, and product pages](https://begenuin.com/developers/browse-by-products/onsite/onsite-contextual-placements-across-homepage-category-and-product-pages)
- [The Hierarchical Grid: one spine for inventory, layout, and reporting](https://begenuin.com/developers/browse-by-products/onsite/the-hierarchical-grid-one-spine-for-inventory-layout-and-reporting)
- [Personalization and relevance: how Maya ranks every feed](https://begenuin.com/developers/browse-by-products/control/personalization-and-relevance-how-maya-ranks-every-feed)
