Skip to content

Commit e16dd18

Browse files
Update tracking event
1 parent 1ea106d commit e16dd18

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

js/src/meta-boxes/channel-visibility/get-started-cta.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import { CHANNEL_VISIBILITY_CONTEXT } from './constants';
1313
/**
1414
* Google Ads Promo "Get started" button is clicked.
1515
*
16-
* @event gla_google_ads_promo_create_campaign_click
16+
* @event gla_google_ads_promo_get_started_click
1717
* @property {string} context Context of the Google Ads Promo.
1818
* @property {string} href URL of the "Get started" button.
1919
*/
2020

2121
/**
2222
* Get Started CTA component.
2323
*
24-
* @fires gla_google_ads_promo_create_campaign_click with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
24+
* @fires gla_google_ads_promo_get_started_click with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
2525
*
2626
* @return {JSX.Element} The Get Started CTA component.
2727
*/
@@ -31,7 +31,7 @@ const GetStartedCTA = () => {
3131
return (
3232
<AppButton
3333
href={ getStartedUrl }
34-
eventName="gla_google_ads_promo_create_campaign_click"
34+
eventName="gla_google_ads_promo_get_started_click"
3535
eventProps={ {
3636
href: getStartedUrl,
3737
context: CHANNEL_VISIBILITY_CONTEXT,

src/Tracking/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -618,17 +618,6 @@ Clicking on the "connect to a different Google account" button.
618618
#### Emitters
619619
- [`SwitchAccountButton`](../../js/src/components/google-account-card/switch-account-button.js#L25)
620620

621-
### [`gla_google_ads_promo_create_campaign_click`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L13)
622-
Google Ads Promo "Get started" button is clicked.
623-
#### Properties
624-
| name | type | description |
625-
| ---- | ---- | ----------- |
626-
`context` | `string` | Context of the Google Ads Promo.
627-
`href` | `string` | URL of the "Get started" button.
628-
#### Emitters
629-
- [`GetStartedCTA`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L28) with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
630-
- [`GoogleAdsPromo`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L73) with `{ context: 'order-attribution-meta-box', href: 'admin.php?page=wc-admin&subpath=%2Fcampaigns%2Fcreate&path=%2Fgoogle%2Fdashboard' }`.
631-
632621
### [`gla_google_ads_promo_create_campaign_click`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L56)
633622
Google Ads Promo "Create campaign" button is clicked.
634623
#### Properties
@@ -637,7 +626,6 @@ Google Ads Promo "Create campaign" button is clicked.
637626
`context` | `string` | Context of the Google Ads Promo.
638627
`href` | `string` | URL of the "Create campaign" button.
639628
#### Emitters
640-
- [`GetStartedCTA`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L28) with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
641629
- [`GoogleAdsPromo`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L73) with `{ context: 'order-attribution-meta-box', href: 'admin.php?page=wc-admin&subpath=%2Fcampaigns%2Fcreate&path=%2Fgoogle%2Fdashboard' }`.
642630

643631
### [`gla_google_ads_promo_dismiss_click`](../../js/src/meta-boxes/channel-visibility/promo-cta.js#L14)
@@ -649,6 +637,17 @@ Google Ads Promo "Dismiss" button is clicked.
649637
#### Emitters
650638
- [`PromoCTA`](../../js/src/meta-boxes/channel-visibility/promo-cta.js#L29) with `{ context: channel-visibility-meta-box }`.
651639

640+
### [`gla_google_ads_promo_get_started_click`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L13)
641+
Google Ads Promo "Get started" button is clicked.
642+
#### Properties
643+
| name | type | description |
644+
| ---- | ---- | ----------- |
645+
`context` | `string` | Context of the Google Ads Promo.
646+
`href` | `string` | URL of the "Get started" button.
647+
#### Emitters
648+
- [`GetStartedCTA`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L28) with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
649+
- [`GoogleAdsPromo`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L73) with `{ context: 'order-attribution-meta-box', href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
650+
652651
### [`gla_google_ads_promo_get_started_click`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L48)
653652
Google Ads Promo "Get started" button is clicked.
654653
#### Properties
@@ -657,6 +656,7 @@ Google Ads Promo "Get started" button is clicked.
657656
`context` | `string` | Context of the Google Ads Promo.
658657
`href` | `string` | URL of the "Get started" button.
659658
#### Emitters
659+
- [`GetStartedCTA`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L28) with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
660660
- [`GoogleAdsPromo`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L73) with `{ context: 'order-attribution-meta-box', href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
661661

662662
### [`gla_google_ads_promo_shown`](../../js/src/meta-boxes/channel-visibility/google-ads-promo.js#L28)

0 commit comments

Comments
 (0)