Deploying the Discovery Resolver

To perform discovery of context properties by the browser itself, expose a part of the Context Engine called the Discovery Resolver by copying a JavaScript file into your web application.

Procedure

  1. In your web application, create or navigate to a location in which to store JavaScript files.
  2. From your installation media, from the \Content Delivery\roles\context\extension-cartridge\javascript\ folder, copy the file discover-min.js to this location.
  3. Within the <head> element of all webpages on which you intend to use the Context Engine, add the following:
    <script type="text/javascript" src="js/discover-min.js"></script>

    where js/ is the location in your Web application to which you copied the file.