Integrating into Brightspot
To replace a Brightspot Site's search with Glean's modal search UI:
- Open Admin > Sites & Settings and select the desired Site(s).
- In the Edit Site view, select the Front-end tab and expand the Advanced section.
-
Click
Add Custom Head Elements
and give it
Internal Name:
Glean
. -
Under
Elements
, click
Add > Script Element
and configure it as follows:
Internal Name:
Glean Web SDK
Type:
Link
Script URL:
https://app.glean.com/embedded-search-latest.min.js
Defer:
true
-
Add another
Script Element
with the following configuration:
Internal Name:
Glean Search Replace
Type:
Inline
Body:
addEventListener('DOMContentLoaded', () => { // If you've customized the page header, you'll need to adjust these selectors. GleanWebSDK.attach(document.querySelector('.Page-header-search-open')) GleanWebSDK.attach(document.querySelector('.Page-header-search-input')) })
- Click Save .