|The source URL of the On-site messaging installation script. The URL differs for playground and production environments and regions.|
|Specify the environment, either |
|Makes loading the script asynchronous and non-blocking.|
|Your individual On-site messaging identifier, it can be found in the Merchant portal. If you don't have access to the Merchant portal, ask your delivery manager for it.|
The library looks for placement tags in the DOM tree. An ad server matches the content to the placement tag ID and returns the content that will be rendered in the tag.
Many ads will contain interstitial events that are initiated when a user clicks a call-to-action. The library listens for those events and renders the interstitial on-click.
We've simplified our integration, so you can install On-site messaging across different markets faster, manage your placements more easily, and benefit from upcoming feature improvements.
You can find the migration guide in the Merchant portal under On-site messaging > Updates > Update On-site messaging.
If you're using one of our platforms, you can find further information in the related platform documentation:
As of February 28, 2022, we no longer provide feature updates and the old integration is in deprecation mode. We'll only fix potential bugs.
Starting March 31, 2023, we'll stop displaying On-site messaging on your website.
Currently, OSM supports the use of iframe as a fallback for browsers that don't support shadowDOM.
The use of iframe has several drawbacks, including:
For these reasons the OSM team had decided to switch to shadowDOM a few years ago and use iframe only as a fallback for browsers that don't support shadowDOM.
ShadowDOM offers several benefits, including:
Given that all the major browsers support shadowDOM we have decided to drop support of iframe, on March 31, 2023 we'll stop displaying ads in old browsers that don't support shadowDOM, for example, Internet Explorer 11 and older.