@access-ci/ui 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,7 +59,7 @@ The library includes functions for rendering common ACCESS user interface compon
59
59
  tableOfContents,
60
60
  universalMenuItems,
61
61
  universalMenus,
62
- } from "https://unpkg.com/@access-ci/ui@0.14.0/dist/access-ci-ui.js";
62
+ } from "https://unpkg.com/@access-ci/ui@0.17.0/dist/access-ci-ui.js";
63
63
 
64
64
  const siteItems = [
65
65
  {
@@ -137,6 +137,10 @@ The library includes functions for rendering common ACCESS user interface compon
137
137
  accessId: "jdoe123",
138
138
  isLoggedIn: true,
139
139
  welcome: "Welcome to the ACCESS Q&A Bot!",
140
+ onAnalyticsEvent: (event) => {
141
+ window.dataLayer = window.dataLayer || [];
142
+ window.dataLayer.push(event);
143
+ },
140
144
  });
141
145
  </script>
142
146
  ```