Embedded Install relies on the server to embed all relevant JavaScript in the page itself on first load rather than relying on a user’s browser to retrieve the scripts from a third party server. This eliminates the possibility of adblockers preventing Admiral’s JavaScript from being delivered to your adblocking users.
Admiral provides an API endpoint that returns JavaScript specific to your property. Using a server-side technology like PHP you can retrieve Admiral’s JavaScript from this API and embed it in the page before the closing body tag. This ensures that Admiral’s JavaScript does not block any of the content on the page from loading.
Keep in mind that with Embedded Install Admiral’s JavaScript is beholden to your server's cache settings. Options for products like Engage will not change when edited until the cache for each page is invalidated on your servers.
The examples provided below show how this endpoint can be utilized to retreive the measure script on the server and embed it into a page using