@salesforcedevs/docs-components 1.3.150-alpha3 → 1.3.150-alpha5
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
|
@@ -35,7 +35,7 @@ export default class AmfReference extends LightningElement {
|
|
|
35
35
|
@api sidebarHeader!: string;
|
|
36
36
|
@api coveoOrganizationId!: string;
|
|
37
37
|
@api coveoPublicAccessToken!: string;
|
|
38
|
-
@api
|
|
38
|
+
@api coveoAnalyticsToken!: string;
|
|
39
39
|
@api coveoAdvancedQueryConfig!: string;
|
|
40
40
|
@api coveoSearchHub!: string;
|
|
41
41
|
@api useOldSidebar?: boolean = false;
|
|
@@ -218,11 +218,10 @@ export default class AmfReference extends LightningElement {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
private logCoveoPageView() {
|
|
221
|
-
console.log("log coveo page view");
|
|
222
|
-
|
|
223
221
|
if (this.coveoOrganizationId) {
|
|
222
|
+
console.log("log coveo page view");
|
|
224
223
|
const ua = new CoveoAnalyticsClient({
|
|
225
|
-
token: this.
|
|
224
|
+
token: this.coveoAnalyticsToken,
|
|
226
225
|
endpoint: `https://${"fullsalesforce"}.analytics.org.coveo.com`
|
|
227
226
|
});
|
|
228
227
|
ua.sendViewEvent({
|
|
@@ -35,7 +35,7 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
35
35
|
@api apiDomain = "https://developer.salesforce.com";
|
|
36
36
|
@api coveoOrganizationId!: string;
|
|
37
37
|
@api coveoPublicAccessToken!: string;
|
|
38
|
-
@api
|
|
38
|
+
@api coveoAnalyticsToken!: string;
|
|
39
39
|
@api coveoSearchHub!: string;
|
|
40
40
|
|
|
41
41
|
@api
|
|
@@ -452,10 +452,10 @@ 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
|
-
token: this.
|
|
458
|
+
token: this.coveoAnalyticsToken,
|
|
459
459
|
endpoint: `https://${this.coveoOrganizationId}.analytics.org.coveo.com`
|
|
460
460
|
}); // MILES TODO: replace 'fullsalesforce' with coveo organizationid
|
|
461
461
|
ua.sendViewEvent({
|