@salesforcedevs/docs-components 1.3.150-alpha4 → 1.3.150-alpha6
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;
|
|
@@ -219,9 +219,12 @@ export default class AmfReference extends LightningElement {
|
|
|
219
219
|
|
|
220
220
|
private logCoveoPageView() {
|
|
221
221
|
if (this.coveoOrganizationId) {
|
|
222
|
-
console.log(
|
|
222
|
+
console.log(
|
|
223
|
+
"log coveo page view with token ",
|
|
224
|
+
this.coveoAnalyticsToken
|
|
225
|
+
);
|
|
223
226
|
const ua = new CoveoAnalyticsClient({
|
|
224
|
-
token: this.
|
|
227
|
+
token: this.coveoAnalyticsToken,
|
|
225
228
|
endpoint: `https://${"fullsalesforce"}.analytics.org.coveo.com`
|
|
226
229
|
});
|
|
227
230
|
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
|
|
@@ -453,9 +453,12 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
if (this.coveoOrganizationId) {
|
|
456
|
-
console.log(
|
|
456
|
+
console.log(
|
|
457
|
+
"log coveo page view with token ",
|
|
458
|
+
this.coveoAnalyticsToken
|
|
459
|
+
);
|
|
457
460
|
const ua = new CoveoAnalyticsClient({
|
|
458
|
-
token: this.
|
|
461
|
+
token: this.coveoAnalyticsToken,
|
|
459
462
|
endpoint: `https://${this.coveoOrganizationId}.analytics.org.coveo.com`
|
|
460
463
|
}); // MILES TODO: replace 'fullsalesforce' with coveo organizationid
|
|
461
464
|
ua.sendViewEvent({
|