Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/src/meta-boxes/channel-visibility/get-started-cta.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import { CHANNEL_VISIBILITY_CONTEXT } from './constants';
/**
* Google Ads Promo "Get started" button is clicked.
*
* @event gla_google_ads_promo_create_campaign_click
* @event gla_google_ads_promo_get_started_click
* @property {string} context Context of the Google Ads Promo.
* @property {string} href URL of the "Get started" button.
*/

/**
* Get Started CTA component.
*
* @fires gla_google_ads_promo_create_campaign_click with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
* @fires gla_google_ads_promo_get_started_click with `{ context: channel-visibility-meta-box, href: 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart' }`.
*
* @return {JSX.Element} The Get Started CTA component.
*/
Expand All @@ -31,7 +31,7 @@ const GetStartedCTA = () => {
return (
<AppButton
href={ getStartedUrl }
eventName="gla_google_ads_promo_create_campaign_click"
eventName="gla_google_ads_promo_get_started_click"
eventProps={ {
href: getStartedUrl,
context: CHANNEL_VISIBILITY_CONTEXT,
Expand Down
24 changes: 12 additions & 12 deletions src/Tracking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,17 +618,6 @@ Clicking on the "connect to a different Google account" button.
#### Emitters
- [`SwitchAccountButton`](../../js/src/components/google-account-card/switch-account-button.js#L25)

### [`gla_google_ads_promo_create_campaign_click`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L13)
Google Ads Promo "Get started" button is clicked.
#### Properties
| name | type | description |
| ---- | ---- | ----------- |
`context` | `string` | Context of the Google Ads Promo.
`href` | `string` | URL of the "Get started" button.
#### Emitters
- [`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' }`.
- [`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' }`.

### [`gla_google_ads_promo_create_campaign_click`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L56)
Google Ads Promo "Create campaign" button is clicked.
#### Properties
Expand All @@ -637,7 +626,6 @@ Google Ads Promo "Create campaign" button is clicked.
`context` | `string` | Context of the Google Ads Promo.
`href` | `string` | URL of the "Create campaign" button.
#### Emitters
- [`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' }`.
- [`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' }`.

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

### [`gla_google_ads_promo_get_started_click`](../../js/src/meta-boxes/channel-visibility/get-started-cta.js#L13)
Google Ads Promo "Get started" button is clicked.
#### Properties
| name | type | description |
| ---- | ---- | ----------- |
`context` | `string` | Context of the Google Ads Promo.
`href` | `string` | URL of the "Get started" button.
#### Emitters
- [`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' }`.
- [`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' }`.

### [`gla_google_ads_promo_get_started_click`](../../js/src/meta-boxes/order-attribution/google-ads-promo.js#L48)
Google Ads Promo "Get started" button is clicked.
#### Properties
Expand All @@ -657,6 +656,7 @@ Google Ads Promo "Get started" button is clicked.
`context` | `string` | Context of the Google Ads Promo.
`href` | `string` | URL of the "Get started" button.
#### Emitters
- [`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' }`.
- [`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' }`.

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