@salesforcedevs/mrkt-components 1.3.85 → 1.3.89

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/mrkt-components",
3
- "version": "1.3.85",
3
+ "version": "1.3.89",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,5 +15,5 @@
15
15
  "devDependencies": {
16
16
  "@types/classnames": "^2.2.10"
17
17
  },
18
- "gitHead": "6b738627c2fefd4e639f1def42cdc4d4a44c7171"
18
+ "gitHead": "5ba430f4d6dd77bdd18336628015be892cc42e38"
19
19
  }
@@ -2,14 +2,6 @@ import { api, LightningElement } from "lwc";
2
2
  import cx from "classnames";
3
3
  import { track } from "dxUtils/analytics";
4
4
 
5
- export const ANALYTICS_EVENT_NAME = "custEv_ctaButtonClick";
6
-
7
- export const ANALYTICS_BASE_PAYLOAD = {
8
- elementType: "button",
9
- destinationType: "internal",
10
- ctaClick: true
11
- };
12
-
13
5
  export default class CTASection extends LightningElement {
14
6
  @api buttonHref!: string;
15
7
  @api buttonText!: string;
@@ -32,13 +24,12 @@ export default class CTASection extends LightningElement {
32
24
  }
33
25
 
34
26
  private handleCtaClick(e: PointerEvent) {
35
- const payload = {
36
- ...ANALYTICS_BASE_PAYLOAD,
37
- itemTitle: this.title,
38
- clickText: this.buttonText,
39
- clickUrl: this.buttonHref
40
- };
41
-
42
- track(e.currentTarget!, ANALYTICS_EVENT_NAME, payload);
27
+ track(e.currentTarget!, "custEv_ctaButtonClick", {
28
+ click_text: this.buttonText,
29
+ click_url: this.buttonHref,
30
+ element_type: "button",
31
+ element_title: this.title,
32
+ content_category: "cta"
33
+ });
43
34
  }
44
35
  }
@@ -139,7 +139,7 @@ img {
139
139
  }
140
140
  }
141
141
 
142
- @media (max-width: 800px) {
142
+ @media (max-width: 1024px) {
143
143
  .main-cta {
144
144
  --dx-c-button-display: inline;
145
145
  --dx-c-button-vertical-spacing: var(--dx-g-spacing-xs);