You are here

d7_google_analytics_settings.yml in Google Analytics 4.x

migrations/d7_google_analytics_settings.yml

File

migrations/d7_google_analytics_settings.yml
View source
  1. id: d7_google_analytics_settings
  2. label: Google Analytics 7 configuration
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: variable
  8. variables:
  9. - googleanalytics_account
  10. - googleanalytics_premium
  11. - googleanalytics_cache
  12. - googleanalytics_codesnippet_after
  13. - googleanalytics_codesnippet_before
  14. - googleanalytics_codesnippet_create
  15. - googleanalytics_cross_domains
  16. - googleanalytics_custom
  17. - googleanalytics_custom_dimension
  18. - googleanalytics_custom_metric
  19. - googleanalytics_domain_mode
  20. - googleanalytics_pages
  21. - googleanalytics_roles
  22. - googleanalytics_site_search
  23. - googleanalytics_trackadsense
  24. - googleanalytics_trackcolorbox
  25. - googleanalytics_trackdoubleclick
  26. - googleanalytics_trackmessages
  27. - googleanalytics_tracker_anonymizeip
  28. - googleanalytics_trackfiles
  29. - googleanalytics_trackfiles_extensions
  30. - googleanalytics_tracklinkid
  31. - googleanalytics_trackmailto
  32. - googleanalytics_trackurlfragments
  33. - googleanalytics_trackuserid
  34. - googleanalytics_trackoutbound
  35. - googleanalytics_translation_set
  36. - googleanalytics_visibility_pages
  37. - googleanalytics_visibility_roles
  38. source_module: googleanalytics
  39. process:
  40. account: googleanalytics_account
  41. premium: googleanalytics_premium
  42. cache: googleanalytics_cache
  43. 'codesnippet/after': googleanalytics_codesnippet_after
  44. 'codesnippet/before': googleanalytics_codesnippet_before
  45. 'codesnippet/create': googleanalytics_codesnippet_create
  46. cross_domains: googleanalytics_cross_domains
  47. 'custom/dimension': googleanalytics_custom_dimension
  48. 'custom/metric': googleanalytics_custom_metric
  49. domain_mode: googleanalytics_domain_mode
  50. 'privacy/anonymizeip': googleanalytics_tracker_anonymizeip
  51. 'track/adsense': googleanalytics_trackadsense
  52. 'track/colorbox': googleanalytics_trackcolorbox
  53. 'track/displayfeatures': googleanalytics_trackdoubleclick
  54. 'track/files': googleanalytics_trackfiles
  55. 'track/files_extensions': googleanalytics_trackfiles_extensions
  56. 'track/linkid': googleanalytics_tracklinkid
  57. 'track/mailto': googleanalytics_trackmailto
  58. 'track/messages': googleanalytics_trackmessages
  59. 'track/site_search': googleanalytics_site_search
  60. 'track/urlfragments': googleanalytics_trackurlfragments
  61. 'track/userid': googleanalytics_trackuserid
  62. 'track/outbound': googleanalytics_trackoutbound
  63. 'translation_set': googleanalytics_translation_set
  64. 'visibility/user_account_mode': googleanalytics_custom
  65. 'visibility/request_path_mode': googleanalytics_visibility_pages
  66. 'visibility/request_path_pages':
  67. plugin: google_analytics_visibility_pages
  68. source:
  69. - googleanalytics_visibility_pages
  70. - googleanalytics_pages
  71. # If Google Analytics uses PHP visibility, don't migrate it unless the PHP
  72. # module is enabled.
  73. skip_php: true
  74. 'visibility/user_role_mode': googleanalytics_visibility_roles
  75. 'visibility/user_role_roles':
  76. plugin: google_analytics_visibility_roles
  77. source:
  78. - googleanalytics_roles
  79. destination:
  80. plugin: config
  81. config_name: google_analytics.settings
  82. migration_dependencies:
  83. optional:
  84. - d7_user_role