| @@ -39,9 +39,10 @@ | ||
| 39 | 39 | * Built-in sections, in render order. |
| 40 | 40 | * |
| 41 | 41 | * Keys here are the section identifiers used everywhere — in the |
| 42 | 42 | * sections_enabled list of the resolved config, in the Section_Registry, and |
| 43 | - * in template paths. | |
| 43 | + * in template paths. `site_traffic` and `ai_search` render only when their | |
| 44 | + * source (a GA4 property, the AI traffic tracker) has something to show. | |
| 44 | 45 | * |
| 45 | 46 | * @return array<string,array{label:string}> |
| 46 | 47 | */ |
| 47 | 48 | function thinkrank_get_email_report_default_sections(): array { |
| @@ -46,23 +47,29 @@ | ||
| 46 | 47 | */ |
| 47 | 48 | function thinkrank_get_email_report_default_sections(): array { |
| 48 | 49 | return [ |
| 49 | 50 | 'key_metrics' => [ |
| 50 | - 'label' => __('Key Metrics', 'thinkrank'), | |
| 51 | + 'label' => __('Search performance', 'thinkrank'), | |
| 51 | 52 | ], |
| 52 | - 'position_summary' => [ | |
| 53 | - 'label' => __('Position Summary', 'thinkrank'), | |
| 53 | + 'top_winning_posts' => [ | |
| 54 | + 'label' => __('Top growing pages', 'thinkrank'), | |
| 54 | 55 | ], |
| 55 | - 'top_winning_posts' => [ | |
| 56 | - 'label' => __('Top Winning Posts', 'thinkrank'), | |
| 56 | + 'top_winning_keywords' => [ | |
| 57 | + 'label' => __('Top growing queries', 'thinkrank'), | |
| 57 | 58 | ], |
| 58 | 59 | 'top_losing_posts' => [ |
| 59 | - 'label' => __('Top Losing Posts', 'thinkrank'), | |
| 60 | + 'label' => __('Pages losing ground', 'thinkrank'), | |
| 60 | 61 | ], |
| 61 | - 'top_winning_keywords' => [ | |
| 62 | - 'label' => __('Top Winning Keywords', 'thinkrank'), | |
| 62 | + 'top_losing_keywords' => [ | |
| 63 | + 'label' => __('Queries losing ground', 'thinkrank'), | |
| 63 | 64 | ], |
| 64 | - 'top_losing_keywords' => [ | |
| 65 | - 'label' => __('Top Losing Keywords', 'thinkrank'), | |
| 65 | + 'position_summary' => [ | |
| 66 | + 'label' => __('Where your keywords rank', 'thinkrank'), | |
| 67 | + ], | |
| 68 | + 'site_traffic' => [ | |
| 69 | + 'label' => __('Site traffic (Google Analytics 4)', 'thinkrank'), | |
| 70 | + ], | |
| 71 | + 'ai_search' => [ | |
| 72 | + 'label' => __('Traffic from AI assistants', 'thinkrank'), | |
| 66 | 73 | ], |
| 67 | 74 | ]; |
| 68 | 75 | } |