@salesforcedevs/docs-components 1.3.150-alpha2 → 1.3.150-alpha3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.150-alpha2",
3
+ "version": "1.3.150-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -220,14 +220,16 @@ export default class AmfReference extends LightningElement {
220
220
  private logCoveoPageView() {
221
221
  console.log("log coveo page view");
222
222
 
223
- const ua = new CoveoAnalyticsClient({
224
- token: this.coveoPageViewToken,
225
- endpoint: `https://${"fullsalesforce"}.analytics.org.coveo.com`
226
- });
227
- ua.sendViewEvent({
228
- contentIdKey: "@clickableuri",
229
- contentIdValue: window.location.href
230
- });
223
+ if (this.coveoOrganizationId) {
224
+ const ua = new CoveoAnalyticsClient({
225
+ token: this.coveoPageViewToken,
226
+ endpoint: `https://${"fullsalesforce"}.analytics.org.coveo.com`
227
+ });
228
+ ua.sendViewEvent({
229
+ contentIdKey: "@clickableuri",
230
+ contentIdValue: window.location.href
231
+ });
232
+ }
231
233
  }
232
234
 
233
235
  /**