settings.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. // Exit if accessed directly
  3. if ( ! defined( 'ABSPATH' ) ) {
  4. exit;
  5. }
  6. function monsterinsights_registered_settings_filter( $settings ) {
  7. // Addons:
  8. // Social
  9. $settings['social']['social_notice'] = array(
  10. 'id' => 'social_notice',
  11. 'no_label' => true,
  12. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  13. 'type' => 'upgrade_notice',
  14. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Social tracking to see who's clicking on your social share links, so you can track and maximize your social sharing exposure.", 'google-analytics-for-wordpress' )
  15. );
  16. // EU Compatibility
  17. $settings['eucompliance']['eucompliance_notice'] = array(
  18. 'id' => 'eucompliance_notice',
  19. 'no_label' => true,
  20. 'name' => __( 'Google Analytics EU Compliance', 'google-analytics-for-wordpress'),
  21. 'type' => 'upgrade_notice',
  22. 'desc' => esc_html__( "The MonsterInsights EU Compliance addon allows you to improve compliance with GDPR and other privacy regulations.", 'google-analytics-for-wordpress' )
  23. );
  24. // Ads
  25. $settings['ads']['ads_notice'] = array(
  26. 'id' => 'ads_notice',
  27. 'no_label' => true,
  28. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  29. 'type' => 'upgrade_notice',
  30. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ads tracking to see who's clicking on your Google Ads, so you can increase your revenue.", 'google-analytics-for-wordpress' )
  31. );
  32. // Forms
  33. $settings['forms']['forms_notice'] = array(
  34. 'id' => 'forms_notice',
  35. 'no_label' => true,
  36. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  37. 'type' => 'upgrade_notice',
  38. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Forms tracking to see who's seeing and submitting your forms, so you can increase your conversion rate.", 'google-analytics-for-wordpress' )
  39. );
  40. // Media
  41. $settings['media']['media_notice'] = array(
  42. 'id' => 'media_notice',
  43. 'no_label' => true,
  44. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  45. 'type' => 'upgrade_notice',
  46. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Media tracking to see who's interacting with the media on your site, so you know what your users are most interested in on your site. You can use this to tailor future content to meet your audience's interest to promote repeat visitors and expand your average user's time spent visiting your website on each visit.", 'google-analytics-for-wordpress' )
  47. );
  48. // Membership
  49. $settings['membership']['membership_notice'] = array(
  50. 'id' => 'membership_notice',
  51. 'no_label' => true,
  52. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  53. 'type' => 'upgrade_notice',
  54. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Membership tracking.", 'google-analytics-for-wordpress' )
  55. );
  56. // Dimensions
  57. $settings['dimensions']['dimensions_notice'] = array(
  58. 'id' => 'dimensions_notice',
  59. 'no_label' => true,
  60. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  61. 'type' => 'upgrade_notice',
  62. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Custom Dimensions and track who's the most popular author on your site, which post types get the most traffic, and more. Why not check it out?", 'google-analytics-for-wordpress' )
  63. );
  64. // Performance
  65. $settings['performance']['performance_notice'] = array(
  66. 'id' => 'performance_notice',
  67. 'no_label' => true,
  68. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  69. 'type' => 'upgrade_notice',
  70. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust the sample rate so you don't exceed Google Analytics' processing limit. You can also use it to enable Google Optimize for A/B testing and personalization.", 'google-analytics-for-wordpress' )
  71. );
  72. // Reporting
  73. $settings['reporting']['reporting_notice'] = array(
  74. 'id' => 'reporting_notice',
  75. 'no_label' => true,
  76. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  77. 'type' => 'upgrade_notice',
  78. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable enhanced reporting.", 'google-analytics-for-wordpress' )
  79. );
  80. // Google AMP
  81. $settings['amp']['amp_notice'] = array(
  82. 'id' => 'amp_notice',
  83. 'no_label' => true,
  84. 'name' => __( 'Want to use track users visiting your AMP pages?', 'google-analytics-for-wordpress'),
  85. 'type' => 'upgrade_notice',
  86. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable AMP page tracking.", 'google-analytics-for-wordpress' )
  87. );
  88. // Google Optimize
  89. $settings['goptimize']['goptimize_notice'] = array(
  90. 'id' => 'goptimize_notice',
  91. 'no_label' => true,
  92. 'name' => __( 'Want to use Google Optimize to retarget your website visitors and perform A/B split tests with ease?', 'google-analytics-for-wordpress'),
  93. 'type' => 'upgrade_notice',
  94. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable Google Optimize.", 'google-analytics-for-wordpress' )
  95. );
  96. // Facebook Instant Articles
  97. $settings['fbia']['fbia_notice'] = array(
  98. 'id' => 'fbia_notice',
  99. 'no_label' => true,
  100. 'name' => __( 'Want to expand your website audience beyond your website with Facebook Instant Articles?', 'google-analytics-for-wordpress'),
  101. 'type' => 'upgrade_notice',
  102. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can track your Facebook Instant Article visitors with MonsterInsights.", 'google-analytics-for-wordpress' )
  103. );
  104. // Bounce Reduction
  105. $settings['bounce']['bounce_notice'] = array(
  106. 'id' => 'bounce_notice',
  107. 'no_label' => true,
  108. 'name' => __( 'Want to adjust your website bounce rate?', 'google-analytics-for-wordpress'),
  109. 'type' => 'upgrade_notice',
  110. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can adjust your Google Analytics bounce rate with MonsterInsights.", 'google-analytics-for-wordpress' )
  111. );
  112. // Notifications
  113. $settings['notifications']['notifications_notice'] = array(
  114. 'id' => 'notifications_notice',
  115. 'no_label' => true,
  116. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  117. 'type' => 'upgrade_notice',
  118. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can enable notifications.", 'google-analytics-for-wordpress' )
  119. );
  120. // eCommerce
  121. $settings['ecommerce']['ecommerce_notice'] = array(
  122. 'id' => 'ecommerce_notice',
  123. 'no_label' => true,
  124. 'name' => __( 'Want to increase your traffic, conversion, & engagement?', 'google-analytics-for-wordpress'),
  125. 'type' => 'upgrade_notice',
  126. 'desc' => esc_html__( "By upgrading to MonsterInsights Pro, you can add Ecommerce tracking to see who's buying your product, what's the most popular item on your store, the average order value, and tons more.", 'google-analytics-for-wordpress' )
  127. );
  128. return $settings;
  129. }
  130. add_filter( 'monsterinsights_registered_settings', 'monsterinsights_registered_settings_filter' );