Injecting GlobalLink Web

The implementation of GlobalLink Web is straightforward. You will receive a Project Key that uniquely identifies the site and the GlobalLink Web configuration, e.g., 12DE-CF63-F278-BBE2. The Project Key is customer and website-specific but not language-specific.

The steps for deploying GlobalLink Web are:

  1. Pick one of the four deployment methods: domain, folder, query, or cookie. The following article, Deployment Strategies for GlobalLink Web, explains these in depth.
  2. Then, pick your language-specific values. These will vary based on your selection from step one and will be explained below in the next chapter with each deployment method.
  3. Lastly, inject the GL Web code snippet below into the head of the document.
<head>
 ...
 <script src=https://www.onelink-edge.com/moxie.min.js data-oljs=”<KEY>” type=”text/javascript”></script>

 </head>

E.g.,

<head>
 ...
 <script src="https://www.onelink-edge.com/moxie.min.js" data-oljs=”P12DE-CF63-F278-BBE2” type="text/javascript"></script>

 </head>

Subresource Integrity (SRI) is fully supported with this one-line injection of static JavaScript. SRI is a security feature that enables browsers to verify that the resources they fetch are delivered without unexpected manipulation. It ensures you provide a cryptographic hash that matches the fetched resource.

This API, https://www.onelink-edge.com/moxie/4.1.16/moxie-integrity.json, provides access to the supported hashes and the hash value of the most recent fixed version of moxie.min.js.

An example of the injection with SRI is below:

<head>
 ...
 <script src="https://www.onelink-edge.com/moxie/4.1.16/moxie.min.js" integrity="SHA256: gazoQLyKJu+ifG2JfK+Lemyv90H0uQOpcjXaIH9i+hQ=" data-oljs="<KEY>" type="text/javascript"></script>

 </head>

Please note that the moxie.min.js version and corresponding hash must be updated every six months.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.