Skip to content

Commit a24837c

Browse files
jboland88matticbot
authored andcommitted
Add/tracking to launch setting (#43859)
* Add a click tracking event to the 'launch site' button in site settings for sites hosted with wordpress.com * changelog * allow tracking before href * Switch anchor for button * Use button component * Wrong variant * use button html element instead of component to get styling right * Add type attribute Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/15611966500 Upstream-Ref: Automattic/jetpack@edd29f9
1 parent 61843f3 commit a24837c

File tree

8 files changed

+152
-145
lines changed

8 files changed

+152
-145
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
This is an alpha version! The changes listed here are not final.
66

7+
### Added
8+
- add tracking for site settings launch action
9+
710
### Fixed
811
- Playground Importer: Fix query error generated by SQLite table with no entries in the data types cache table.
912

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '7ac57928ceaf5895f9bd');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '7587d600c422f1b13793');

jetpack_vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-replace-site-visibility/wpcom-replace-site-visibility.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jetpack_vendor/automattic/jetpack-mu-wpcom/src/features/replace-site-visibility/launch-site/index.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { __ } from '@wordpress/i18n';
22
import { addQueryArgs } from '@wordpress/url';
3+
import { wpcomTrackEvent } from '../../../common/tracks';
34
import SitePreviewLink from '../site-preview-link';
45
import type { SitePreviewLinkObject } from '../site-preview-link';
56

@@ -54,14 +55,17 @@ const LaunchSite = ( {
5455
0
5556
) }
5657
</p>
57-
<a
58-
role="button"
59-
className="button-secondary"
58+
<button
59+
className="button is-secondary"
60+
type="button"
6061
style={ { marginTop: '0.5em' } }
61-
href={ launchUrl }
62+
onClick={ () => {
63+
wpcomTrackEvent( 'wpcom_settings_reading_launch_site_button_click' );
64+
window.location.href = launchUrl;
65+
} }
6266
>
6367
{ __( 'Launch site', 'jetpack-mu-wpcom' ) }
64-
</a>
68+
</button>
6569
{ showPreviewLink && (
6670
<SitePreviewLink
6771
homeUrl={ homeUrl }

jetpack_vendor/i18n-map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
),
5555
'jetpack-mu-wpcom' => array(
5656
'path' => 'jetpack_vendor/automattic/jetpack-mu-wpcom',
57-
'ver' => '6.7.0-alpha1749728220',
57+
'ver' => '6.7.0-alpha1749735108',
5858
),
5959
'jetpack-password-checker' => array(
6060
'path' => 'jetpack_vendor/automattic/jetpack-password-checker',

vendor/composer/installed.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"dist": {
8585
"type": "path",
8686
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
87-
"reference": "c156732d9f75dfb9951f847cc04acd392311c801"
87+
"reference": "2102d50ad7ff36134f26c66e9f5875102066bb12"
8888
},
8989
"require": {
9090
"php": ">=7.2"
@@ -141,7 +141,7 @@
141141
"dist": {
142142
"type": "path",
143143
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
144-
"reference": "95988ee497ba934599831cb19173498edc67218f"
144+
"reference": "92f6e3bdca6885aef9890a3c7f1c8f47771c530a"
145145
},
146146
"require": {
147147
"php": ">=7.2"
@@ -204,7 +204,7 @@
204204
"dist": {
205205
"type": "path",
206206
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
207-
"reference": "83e502881503ec790828186ad3cc8bfed8d06c89"
207+
"reference": "f54f93e62a2eb7aa5f38b553cfc3dd2fb0755e28"
208208
},
209209
"require": {
210210
"automattic/jetpack-constants": "^3.0.8",
@@ -278,7 +278,7 @@
278278
"dist": {
279279
"type": "path",
280280
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
281-
"reference": "af082dfed8cf660df62a9d98c2e81e43b6098aa2"
281+
"reference": "17c71982886376aa9f8f9d5c015ba5b17ee39f49"
282282
},
283283
"require": {
284284
"composer-plugin-api": "^2.2",
@@ -350,7 +350,7 @@
350350
"dist": {
351351
"type": "path",
352352
"url": "/tmp/jetpack-build/Automattic/jetpack-blaze",
353-
"reference": "626e1fe1685c79e65733654c4036fe8d3a241055"
353+
"reference": "f2bcfb890586129bda425ef8573803a5cfc79b30"
354354
},
355355
"require": {
356356
"automattic/jetpack-assets": "^4.0.26",
@@ -429,7 +429,7 @@
429429
"dist": {
430430
"type": "path",
431431
"url": "/tmp/jetpack-build/Automattic/jetpack-blocks",
432-
"reference": "020686839e0cd1d6f7be578a5f60a64494a8530c"
432+
"reference": "2f2d38545af828a2d1c6d02d5a1335c0ab29e181"
433433
},
434434
"require": {
435435
"automattic/jetpack-constants": "^3.0.8",
@@ -489,7 +489,7 @@
489489
"dist": {
490490
"type": "path",
491491
"url": "/tmp/jetpack-build/Automattic/jetpack-calypsoify",
492-
"reference": "f0fe5c23742256ee0d15cefe3e7414d6696ae2c5"
492+
"reference": "8d4d9acd51d75ddb4da5032a40f4e510cfd013a6"
493493
},
494494
"require": {
495495
"automattic/jetpack-assets": "^4.0.26",
@@ -558,7 +558,7 @@
558558
"dist": {
559559
"type": "path",
560560
"url": "/tmp/jetpack-build/Automattic/jetpack-classic-theme-helper",
561-
"reference": "3826a5c4483636a106b11cae08c1d8a782ed2fed"
561+
"reference": "274d670b49d06b446940029677d5beb5b40cd5aa"
562562
},
563563
"require": {
564564
"automattic/jetpack-assets": "^4.0.26",
@@ -626,7 +626,7 @@
626626
"dist": {
627627
"type": "path",
628628
"url": "/tmp/jetpack-build/Automattic/jetpack-compat",
629-
"reference": "be2de14a685b27fdd5f507c8b0b658700a012dcf"
629+
"reference": "d7b9e0ef189c59a909540963367c8432bd0565d8"
630630
},
631631
"require": {
632632
"php": ">=7.2"
@@ -666,7 +666,7 @@
666666
"dist": {
667667
"type": "path",
668668
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
669-
"reference": "9d6d5f94f57357e0bbec73ee6aca41b82fe1a034"
669+
"reference": "8f6660b8e8a2dc4f1d8b751dd37488098a0f1115"
670670
},
671671
"require": {
672672
"composer-plugin-api": "^2.2",
@@ -730,7 +730,7 @@
730730
"dist": {
731731
"type": "path",
732732
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
733-
"reference": "60a308c42ac3119615ddd42a6a3543b7466d1870"
733+
"reference": "ce7e4850b561f399f8704e0049526b5c46baf91a"
734734
},
735735
"require": {
736736
"php": ">=7.2"
@@ -807,7 +807,7 @@
807807
"dist": {
808808
"type": "path",
809809
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
810-
"reference": "4a58bcca615e69f155c7bea634e841251889d696"
810+
"reference": "2c6cd5d0e83bffb0b951f3378bd5010997b628b7"
811811
},
812812
"require": {
813813
"automattic/jetpack-a8c-mc-stats": "^3.0.5",
@@ -895,7 +895,7 @@
895895
"dist": {
896896
"type": "path",
897897
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
898-
"reference": "b81e9fa70ebc7e31ff3a19f9bf6552af3bb08c81"
898+
"reference": "b2800642c17f108bd00e79cec153ecc04f105957"
899899
},
900900
"require": {
901901
"php": ">=7.2"
@@ -953,7 +953,7 @@
953953
"dist": {
954954
"type": "path",
955955
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
956-
"reference": "a8d4fa5096c64053c23056fd9f42ec30f1ce988f"
956+
"reference": "38caf08c57acbe7698b5930b6a1b89fc18b3ef0f"
957957
},
958958
"require": {
959959
"php": ">=7.2"
@@ -1010,7 +1010,7 @@
10101010
"dist": {
10111011
"type": "path",
10121012
"url": "/tmp/jetpack-build/Automattic/jetpack-google-analytics",
1013-
"reference": "29ef9225b5ebe68be2ed2692a5b061b58fe8bb38"
1013+
"reference": "da620094d08cbf40ee67450af84090582a06e5fa"
10141014
},
10151015
"require": {
10161016
"automattic/jetpack-status": "^5.2.0",
@@ -1079,7 +1079,7 @@
10791079
"dist": {
10801080
"type": "path",
10811081
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
1082-
"reference": "afae4514456c5010586f880130cf3c165c706356"
1082+
"reference": "cb964341180d124e4a404610d8dfe4e8f2b7ba7f"
10831083
},
10841084
"require": {
10851085
"php": ">=7.2"
@@ -1141,7 +1141,7 @@
11411141
"dist": {
11421142
"type": "path",
11431143
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
1144-
"reference": "0bb9a831dd87e6ba107ba6f69677b82a5a624c4c"
1144+
"reference": "035727c4e087f4819e10defdb3ccd63544ea8043"
11451145
},
11461146
"require": {
11471147
"automattic/jetpack-a8c-mc-stats": "^3.0.5",
@@ -1220,7 +1220,7 @@
12201220
"dist": {
12211221
"type": "path",
12221222
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
1223-
"reference": "18abef9b8ea01d60c99da9ad3d46cd2fe9e08a6f"
1223+
"reference": "86a8b6b47464c0514e6ba81c2e05f689abc83d80"
12241224
},
12251225
"require": {
12261226
"php": ">=7.2"
@@ -1277,7 +1277,7 @@
12771277
"dist": {
12781278
"type": "path",
12791279
"url": "/tmp/jetpack-build/Automattic/jetpack-masterbar",
1280-
"reference": "e4e28dfa0a2d1828a2b6529ca8444fa7e56113f7"
1280+
"reference": "8aca42401a7450a77c7787279869acc19da7c928"
12811281
},
12821282
"require": {
12831283
"automattic/jetpack-assets": "^4.0.26",
@@ -1358,12 +1358,12 @@
13581358
},
13591359
{
13601360
"name": "automattic/jetpack-mu-wpcom",
1361-
"version": "6.7.0-alpha.1749728220",
1362-
"version_normalized": "6.7.0.0-alpha1749728220",
1361+
"version": "6.7.0-alpha.1749735108",
1362+
"version_normalized": "6.7.0.0-alpha1749735108",
13631363
"dist": {
13641364
"type": "path",
13651365
"url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom",
1366-
"reference": "39bf7076c1f2984053a2c31e75e32ca91cf261e9"
1366+
"reference": "6a38f897cdd96612e1c64ae1538aec251300d58f"
13671367
},
13681368
"require": {
13691369
"automattic/jetpack-assets": "^4.0.26",
@@ -1450,7 +1450,7 @@
14501450
"dist": {
14511451
"type": "path",
14521452
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
1453-
"reference": "e8c090cda984d589336ce85fac2543542c560020"
1453+
"reference": "a741d9f71ae3d4e8c2fbfdccee3731b31f7eb059"
14541454
},
14551455
"require": {
14561456
"php": ">=7.2"
@@ -1509,7 +1509,7 @@
15091509
"dist": {
15101510
"type": "path",
15111511
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
1512-
"reference": "a8148e7f99d0954c0a01bd4e2cffaa112c819d8a"
1512+
"reference": "a7cf2bbc9157adce27c1f304e7e039481101e5a7"
15131513
},
15141514
"require": {
15151515
"automattic/jetpack-connection": "^6.13.4-alpha",
@@ -1575,7 +1575,7 @@
15751575
"dist": {
15761576
"type": "path",
15771577
"url": "/tmp/jetpack-build/Automattic/jetpack-post-list",
1578-
"reference": "390b10ffb922b111dff4eeecc4c79eb6b6aca044"
1578+
"reference": "8c588d3a917f6b5ff20dbb09400c6bb8b8ad79d3"
15791579
},
15801580
"require": {
15811581
"automattic/jetpack-assets": "^4.0.26",
@@ -1644,7 +1644,7 @@
16441644
"dist": {
16451645
"type": "path",
16461646
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
1647-
"reference": "a7cb5683843de75f69672d4a775beb3e5d0770fa"
1647+
"reference": "fdfd3cb3066ab67c75117037a0908997e84acb46"
16481648
},
16491649
"require": {
16501650
"automattic/jetpack-status": "^5.2.0",
@@ -1703,7 +1703,7 @@
17031703
"dist": {
17041704
"type": "path",
17051705
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
1706-
"reference": "47839a44bd4d0f032508b2fb5356c239cb9f6b26"
1706+
"reference": "d08ce5053c709107cffa6273f33e871b012c60a3"
17071707
},
17081708
"require": {
17091709
"php": ">=7.2"
@@ -1761,7 +1761,7 @@
17611761
"dist": {
17621762
"type": "path",
17631763
"url": "/tmp/jetpack-build/Automattic/jetpack-stats",
1764-
"reference": "8d1eb0383ad83eae8519cff558ab45156a4fb95a"
1764+
"reference": "515d799cdde3c67f411dfce2c6c05eb6a9f0dc52"
17651765
},
17661766
"require": {
17671767
"automattic/jetpack-connection": "^6.13.4-alpha",
@@ -1831,7 +1831,7 @@
18311831
"dist": {
18321832
"type": "path",
18331833
"url": "/tmp/jetpack-build/Automattic/jetpack-stats-admin",
1834-
"reference": "e421333db5b163b9e0c10a380c7ce1554482de79"
1834+
"reference": "8b0309917e98dd17983aaffc624c892223c67652"
18351835
},
18361836
"require": {
18371837
"automattic/jetpack-blaze": "^0.25.30-alpha",
@@ -1903,7 +1903,7 @@
19031903
"dist": {
19041904
"type": "path",
19051905
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
1906-
"reference": "791657d52d5ee108741a50195345f4563c17f669"
1906+
"reference": "d92db426fdaed121c1c8967ca45c7d0837449d3b"
19071907
},
19081908
"require": {
19091909
"automattic/jetpack-constants": "^3.0.8",
@@ -1971,7 +1971,7 @@
19711971
"dist": {
19721972
"type": "path",
19731973
"url": "/tmp/jetpack-build/Automattic/jetpack-subscribers-dashboard",
1974-
"reference": "2e732a0fffdae79a078fae9d883bce417193ec4d"
1974+
"reference": "208ef417bed6cdbc07ac1122eba4a0210e9cc591"
19751975
},
19761976
"require": {
19771977
"automattic/jetpack-connection": "^6.13.4-alpha",
@@ -2053,7 +2053,7 @@
20532053
"dist": {
20542054
"type": "path",
20552055
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
2056-
"reference": "dbc3dc35d4ad9233dfcbeca8145131957051b49f"
2056+
"reference": "4916d4af6c7a3668dfe02a5036845d41b637a5a4"
20572057
},
20582058
"require": {
20592059
"automattic/jetpack-connection": "^6.13.4-alpha",
@@ -2129,7 +2129,7 @@
21292129
"dist": {
21302130
"type": "path",
21312131
"url": "/tmp/jetpack-build/Automattic/scheduled-updates",
2132-
"reference": "81bf6720e49ba4f8c6da4857e0b3cff9ed83370f"
2132+
"reference": "5adc4d9c26c7bc26a53d04f26802db2369788dbe"
21332133
},
21342134
"require": {
21352135
"automattic/jetpack-connection": "^6.13.4-alpha",

0 commit comments

Comments
 (0)