Find the Pages That Lose Visitors with Burst Statistics and AI
Find the three pages losing the most visitors and get specific fixes, with any change saved as a draft copy.
Prerequisites
A site connected to WPVibe as an administrator, running Burst Statistics 3.7.4 or newer (tested on the free 3.7.4) on WordPress 6.9 or newer, with Burst, Settings, Advanced, Enable Abilities API turned on (it is off by default).
My WordPress site uses Burst Statistics. Find the pages where visitors leave fastest and tell me how to fix them. Don't change anything unless I say so.
1. Run discover_abilities with category burst-statistics. If no burst abilities are listed, stop and tell me to install or update Burst Statistics (free or Pro, 3.7.4 or newer, on WordPress 6.9 or newer) and turn on Burst, Settings, Advanced, Enable Abilities API, which is off by default. If burst/settings is not in the list, Burst is older than 3.7.4, whose abilities can return rows without the page or referrer: tell me to update Burst Statistics, then stop. If a burst ability answers that I am not allowed, tell me WPVibe must be connected as an administrator, then stop.
2. Burst takes dates as Unix timestamps and counts days in my site's time zone. Get my site's offset from UTC today with run_wp_cli option get gmt_offset (in hours; it already includes daylight saving time) and multiply it by 3600 to get OFFSET_SECONDS (-5 becomes -18000). Then run run_wp_cli db query "SELECT UNIX_TIMESTAMP() AS now, UNIX_TIMESTAMP() - MOD(UNIX_TIMESTAMP() + OFFSET_SECONDS, 86400) AS today_start" and use those two numbers (if clocks changed between midnight and now today, move today_start by 3600 by the same rule as below). For an earlier day, subtract 86400 from today_start for each day back; if a daylight saving change falls in between (run_wp_cli option get timezone_string names the time zone; empty means a fixed offset with no changes), subtract another 3600 if clocks went back an hour since that day, or add 3600 if they went forward. A day ends 1 second before the next one starts. Always send both date_start and date_end: without them burst/today-summary counts every visit ever recorded and burst/data can come back empty. In Burst's answers, avg_time_on_page is in milliseconds (divide by 1000 for seconds) and bounce_rate is a percent. Burst counts a visit as a bounce when the visitor saw one page and left within 5 seconds.
3. If run_wp_cli option get permalink_structure is empty, Burst's page table can only show such pages as / or with no address, so they can't be matched to pages: tell me that and stop. Run burst/data with type datatable, datatable_id statistics_pages, date_start [30] days before today's start, date_end now, this exact metrics list: ["pageviews", "visitors", "bounce_rate", "avg_time_on_page"], and limit 50.
4. Work out the site's average bounce rate, weighting each page by its page views. Keep the pages with at least [50] page views; if fewer than 5 pages reach that, keep the 10 with the most page views and tell me the numbers are small. Leave out pages whose job is to end the visit, such as thank-you pages. If nearly every page shows a bounce rate close to 100, tell me Burst's bounce correction is probably not running (Burst records each visit as a bounce and corrects it with WP-Cron) and stop. Flag the pages whose bounce rate is at least 15 points above the average, rank them by page views times bounce rate (the visits they lose) and take the top 3. If no page is flagged, tell me no page stands out and stop.
5. For each of the 3, page_url is its path. First run rest_api GET /wp/v2/settings with fields show_on_front,page_on_front,page_for_posts. If the path is /, it is the home page: if show_on_front is posts, it is the theme's list of latest posts; otherwise read page page_on_front with rest_api GET /wp/v2/pages/ID?context=edit and fields id,title,content,template,parent. Burst usually records visits to search results pages under / too, so the / row mixes the home page with site searches: tell me that. For any other path, find the post or page with rest_api GET /wp/v2/pages?slug=SLUG&context=edit and fields id,title,content,template,parent,link (SLUG is the last part of the path), or the same on /wp/v2/posts if no page matches. Use only a match whose link path equals the path; if none does, treat it as no match. If neither matches (a product, a course, an archive), or the page is a WooCommerce shop, cart, checkout or account page, a course catalog, or its id equals page_for_posts (WordPress shows the list of posts there), say what it is and give me changes to make by hand. Then read what visitors actually see with get_page_html on the page's full address with selector body (and a larger max_length if it says the page was cut), because a theme or page builder can show something other than the stored content. Run burst/data with type datatable, datatable_id statistics_referrers, the same dates and this exact filters list: [{"key": "page_url", "value": "PATH"}], to see where its visitors come from.
6. For each page, based on what get_page_html showed, tell me in a few lines: what its title and opening promise against what visitors from those sources were likely looking for, what most likely makes them leave, and two or three specific changes, including a rewritten opening paragraph.
7. Ask me which change to try. Make a draft copy only when all of these hold, and copy from a fresh read of that one page (rest_api GET /wp/v2/pages/ID?context=edit, or /wp/v2/posts/ID, with fields id,content,template,parent), not from the list read: the page's raw content has block markers starting with wp:, none of them starts with wp:divi/; run_wp_cli post meta get ID returns nothing for each of _elementor_edit_mode, _et_pb_use_builder, _fl_builder_enabled, _bricks_editor_mode, _breakdance_data and ct_builder_shortcodes; and the opening text of the raw content appears in what get_page_html showed (compare the words, ignoring quote marks and HTML entities). Then create a new draft copy with rest_api_write POST (or rest_api with method POST where that is the only REST tool) to /wp/v2/pages (or /wp/v2/posts for a post): status draft, the same title followed by (draft), the same template and parent, and its content with only that change. Give me the draft's preview link, and tell me that once I like the change I should copy it into the live page myself and trash the draft copy. Never edit the published page. For any other page (a page builder, a theme template that ignores the content, a classic page), give me the change as steps to make by hand instead.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Find the Pages That Lose Visitors with Burst Statistics and AI” recipe from the WPVibe cookbook on my connected site.
Some pages get plenty of visits and lose most of them in seconds: the title promised one thing, the first screen shows another, or there is nowhere obvious to go next. Your analytics show the bounce rate, but not which pages matter most or what to change.
The AI reads the last month of page statistics from Burst, ranks the pages by the visits they lose, reads the top three and checks where their visitors come from. For each it explains what likely sends people away and suggests two or three changes, with a rewritten opening. It changes nothing unless you pick a change, and then it writes it into a new draft copy for you to preview, never into the live page.
Burst counts a visit as a bounce when someone sees one page and leaves within 5 seconds, so a high bounce rate on a contact or thank-you page can be fine. Pages built with Elementor or another page builder get the changes as a list to make by hand. When you like a change in a draft copy, copy it into the live page and trash the copy. Wait until a page has a few dozen visits before judging it: the prompt starts at 50 page views, and you can change that number.
Outcome
The three pages that lose the most visitors, why, and two or three changes for each; any change you pick is saved as a draft copy for you to preview.