16
16
* limitations under the License.
17
17
*/
18
18
19
- /**
20
- * WordPress dependencies
21
- */
22
- import { __ } from '@wordpress/i18n' ;
23
-
24
19
export const MODULES_ANALYTICS_4 = 'modules/analytics-4' ;
25
20
26
21
export const PROPERTY_CREATE = 'property_create' ;
@@ -40,38 +35,33 @@ export const ENHANCED_MEASUREMENT_SHOULD_DISMISS_ACTIVATION_BANNER =
40
35
41
36
export const FORM_CUSTOM_DIMENSIONS_CREATE = 'analytics4CustomDimensionsCreate' ;
42
37
38
+ // Note: names and descriptions are not translated as these are not surfaced in Site Kit
39
+ // and are also subject to hard limits on the length which would be unpredictable if translated.
40
+ // See https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties.customDimensions#CustomDimension
43
41
export const CUSTOM_DIMENSION_DEFINITIONS = {
44
42
googlesitekit_post_date : {
45
43
parameterName : 'googlesitekit_post_date' ,
46
- displayName : __ ( 'WordPress Post Creation Date' , 'google-site-kit' ) ,
47
- description : __ (
48
- 'Date of which this post was published' ,
49
- 'google-site-kit'
50
- ) ,
44
+ displayName : 'WordPress Post Date' ,
45
+ description : 'Created by Site Kit: Date when a post was published' ,
51
46
scope : 'EVENT' ,
52
47
} ,
53
48
googlesitekit_post_author : {
54
49
parameterName : 'googlesitekit_post_author' ,
55
- displayName : __ ( 'WordPress Post Author' , 'google-site-kit' ) ,
56
- description : __ (
57
- 'User ID of the author for this post' ,
58
- 'google-site-kit'
59
- ) ,
50
+ displayName : 'WordPress Post Author' ,
51
+ description : 'Created by Site Kit: WordPress name of the post author' ,
60
52
scope : 'EVENT' ,
61
53
} ,
62
54
googlesitekit_post_categories : {
63
55
parameterName : 'googlesitekit_post_categories' ,
64
- displayName : __ ( 'WordPress Post Categories' , 'google-site-kit' ) ,
65
- description : __ (
66
- 'Comma-separated list of category IDs assigned to this post' ,
67
- 'google-site-kit'
68
- ) ,
56
+ displayName : 'WordPress Post Categories' ,
57
+ description :
58
+ 'Created by Site Kit: Names of categories assigned to a post' ,
69
59
scope : 'EVENT' ,
70
60
} ,
71
61
googlesitekit_post_type : {
72
62
parameterName : 'googlesitekit_post_type' ,
73
- displayName : __ ( 'WordPress Post Type' , 'google-site-kit' ) ,
74
- description : __ ( ' Content type for this post', 'google-site-kit' ) ,
63
+ displayName : 'WordPress Post Type' ,
64
+ description : 'Created by Site Kit: Content type of a post',
75
65
scope : 'EVENT' ,
76
66
} ,
77
67
} ;
0 commit comments