Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 4a67413

Browse files
committed
add utms to cloud-connection and migration modal
1 parent db1eb98 commit 4a67413

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/header/ACLK/cloud-connection-status-modal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import {
1717

1818
import { ConnectionModalStatusContent } from "./types"
1919

20+
const utm_campaign = "agent_nudge_to_cloud"
21+
2022
export type CloudConnectionStatusModalProps = ConnectionModalStatusContent & {
2123
closeModal: () => void
2224
onRefresh?: () => void
@@ -70,7 +72,7 @@ const CloudConnectionStatusModal = ({
7072
</ModalBody>
7173
<ModalFooter>
7274
<Box data-testid="cta1" margin={[0, 2, 0, 0]} width={{ min: 40 }}>
73-
<GoToCloud utmParameters={{ content: "connection-to-cloud" }}>
75+
<GoToCloud utmParameters={{ content: "connection_to_cloud", utm_campaign }}>
7476
{({ link }) => (
7577
<Button
7678
data-ga={`connection-to-cloud::click-ct1::ad`}

src/domains/dashboard/components/migration-modal/migration-modal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
Checkbox,
1616
} from "@netdata/netdata-ui"
1717

18+
const utm_campaign = "agent_nudge_to_cloud"
19+
1820
const MigrationModal = ({
1921
migrationModalPromoInfo,
2022
setUserPrefrence,
@@ -119,7 +121,7 @@ const MigrationModal = ({
119121
/>
120122
</Box>
121123
<Box data-testid="cta1" margin={[0, 2, 0, 0]} width={{ min: 40 }}>
122-
<GoToCloud utmParameters={{ content: migrationModalPromo }}>
124+
<GoToCloud utmParameters={{ content: migrationModalPromo, utm_campaign }}>
123125
{({ link }) => (
124126
<Button
125127
data-ga={`${migrationModalPromo}::click-ct1::ad`}

0 commit comments

Comments
 (0)