You are here

google_analytics.schema.yml in Google Analytics 4.x

config/schema/google_analytics.schema.yml

File

config/schema/google_analytics.schema.yml
View source
  1. # Schema for the configuration files of the google_analytics module.
  2. google_analytics.settings:
  3. type: config_object
  4. label: 'Google Analytics settings'
  5. mapping:
  6. account:
  7. type: string
  8. label: 'Web Property ID'
  9. premium:
  10. type: boolean
  11. label: 'Premium account'
  12. domain_mode:
  13. type: integer
  14. label: 'What are you tracking?'
  15. cross_domains:
  16. type: string
  17. label: 'List of top-level domains'
  18. visibility:
  19. type: mapping
  20. label: 'Visibility'
  21. mapping:
  22. request_path_mode:
  23. type: integer
  24. label: 'Add tracking to specific pages'
  25. request_path_pages:
  26. type: string
  27. label: 'Pages by their paths'
  28. user_role_mode:
  29. type: integer
  30. label: 'Add tracking for specific roles'
  31. user_role_roles:
  32. type: sequence
  33. label: 'Roles'
  34. sequence:
  35. type: string
  36. label: 'Role'
  37. user_account_mode:
  38. type: integer
  39. label: 'Allow users to customize tracking on their account page'
  40. track:
  41. type: mapping
  42. label: 'Links and downloads'
  43. mapping:
  44. outbound:
  45. type: boolean
  46. label: 'Track clicks on outbound links'
  47. mailto:
  48. type: boolean
  49. label: 'Track clicks on mailto links'
  50. files:
  51. type: boolean
  52. label: 'Track downloads'
  53. files_extensions:
  54. type: string
  55. label: 'File extension list'
  56. colorbox:
  57. type: boolean
  58. label: 'Track content in colorbox modal dialogs'
  59. linkid:
  60. type: boolean
  61. label: 'Enable enhanced link attribution'
  62. urlfragments:
  63. type: boolean
  64. label: 'Track changing URL fragments as pageviews'
  65. userid:
  66. type: boolean
  67. label: 'Track User ID'
  68. messages:
  69. type: sequence
  70. label: 'Track messages of type'
  71. sequence:
  72. type: string
  73. label: 'Message type'
  74. site_search:
  75. type: boolean
  76. label: 'Track internal search'
  77. adsense:
  78. type: boolean
  79. label: 'Track AdSense ads'
  80. displayfeatures:
  81. type: boolean
  82. label: 'Track display features'
  83. privacy:
  84. type: mapping
  85. label: 'Privacy'
  86. mapping:
  87. anonymizeip:
  88. type: boolean
  89. label: 'Anonymize visitors IP address'
  90. custom:
  91. type: mapping
  92. label: 'Custom variables'
  93. mapping:
  94. dimension:
  95. type: sequence
  96. label: 'Custom dimensions'
  97. sequence:
  98. type: mapping
  99. label: 'Dimension'
  100. mapping:
  101. index:
  102. type: integer
  103. label: Index
  104. name:
  105. type: string
  106. label: Name
  107. value:
  108. type: string
  109. label: Value
  110. metric:
  111. type: sequence
  112. label: 'Custom metrics'
  113. sequence:
  114. type: mapping
  115. label: 'Metric'
  116. mapping:
  117. index:
  118. type: integer
  119. label: Index
  120. name:
  121. type: string
  122. label: Name
  123. value:
  124. type: string
  125. label: Value
  126. codesnippet:
  127. type: mapping
  128. label: 'Custom code snippets'
  129. mapping:
  130. create:
  131. type: sequence
  132. label: 'Parameters'
  133. sequence:
  134. type: ignore
  135. label: 'Parameter'
  136. before:
  137. type: string
  138. label: 'Code snippet (before)'
  139. after:
  140. type: string
  141. label: 'Code snippet (after)'
  142. translation_set:
  143. type: boolean
  144. label: 'Track translation sets as one unit'
  145. cache:
  146. type: boolean
  147. label: 'Locally cache tracking code file'
  148. debug:
  149. type: boolean
  150. label: 'Load debugging code of Google Universal Analytics'