@salesforcedevs/docs-components 1.3.209-lang3-alpha → 1.3.209-lang4-alpha
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
|
@@ -17,6 +17,7 @@ import { SearchSyncer } from "docUtils/searchSyncer";
|
|
|
17
17
|
import { LightningElementWithState } from "dxBaseElements/lightningElementWithState";
|
|
18
18
|
import { logCoveoPageView, oldVersionDocInfo } from "docUtils/utils";
|
|
19
19
|
import { Breadcrumb, DocPhaseInfo, Language } from "typings/custom";
|
|
20
|
+
import { track as trackGTM } from "dxUtils/analytics";
|
|
20
21
|
|
|
21
22
|
// TODO: Imitating from actual implementation as doc-content use it like this. We should refactor it later.
|
|
22
23
|
const handleContentError = (error: any): void => console.log(error);
|
|
@@ -371,6 +372,17 @@ export default class DocXmlContent extends LightningElementWithState<{
|
|
|
371
372
|
({ id }) => id === event.detail
|
|
372
373
|
);
|
|
373
374
|
this.pageReference.docId = this.language!.url;
|
|
375
|
+
|
|
376
|
+
trackGTM(event.target!, "custEv_ctaLinkClick", {
|
|
377
|
+
click_text: event.detail,
|
|
378
|
+
element_title: "language selector",
|
|
379
|
+
click_url: `${window.location.origin}${this.pageReferenceToString(
|
|
380
|
+
this.pageReference
|
|
381
|
+
)}`,
|
|
382
|
+
element_type: "link",
|
|
383
|
+
content_category: "cta"
|
|
384
|
+
});
|
|
385
|
+
|
|
374
386
|
this.updateUrl();
|
|
375
387
|
this.fetchDocument();
|
|
376
388
|
};
|