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

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-alpha4",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -218,16 +218,17 @@ export default class AmfReference extends LightningElement {
218
218
  }
219
219
 
220
220
  private logCoveoPageView() {
221
- console.log("log coveo page view");
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
- });
221
+ if (this.coveoOrganizationId) {
222
+ console.log("log coveo page view");
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
+ });
231
+ }
231
232
  }
232
233
 
233
234
  /**
@@ -452,8 +452,8 @@ export default class DocXmlContent extends LightningElementWithState<{
452
452
  return;
453
453
  }
454
454
 
455
- console.log("log coveo page view");
456
455
  if (this.coveoOrganizationId) {
456
+ console.log("log coveo page view");
457
457
  const ua = new CoveoAnalyticsClient({
458
458
  token: this.coveoPageViewToken,
459
459
  endpoint: `https://${this.coveoOrganizationId}.analytics.org.coveo.com`