long-tail-analysis
Long-tail Analysis
Quantify the head-versus-tail shape of one property, measure the share of its traffic that no query or page row carries, and turn the named tail into themes worth a page. The user's request may contain a property (a GSC site URL or a recognizable name), a date range, a preset hint (for example "ecommerce" or "small site"), or a focus such as a topic or a URL path to concentrate the theme step on.
Workflow
-
Resolve the property. If the user's request or the conversation names a property, use it. Site URLs use GSC formats:
sc-domain:example.comorhttps://www.example.com/. Otherwise calllist_sitesand pick the obvious match. If several plausible properties exist, ask the user which one before continuing. -
Fix one window. Use the last 28 days compared with the previous period unless the user specifies dates. Every tool below defaults to the last 28 settled days when
startDateandendDateare omitted, so either omit both everywhere or pass the same explicit pair everywhere; mixing the two misaligns the shares. Each response echoes the window it covered (range, orstartDate/endDateonquery_search_analytics), which is the range to cite.- GSC data lags about 2 to 3 days: never treat the most recent 2 days as complete, and if a dip appears at the very edge of the range, say it is likely reporting lag, not a real drop.
-
Page tiers. Call
get_longtail_clusterswithsiteUrl,preset(default,content,ecommerce,small_siteorenterprise; pick from the user's hint, elsedefault) andpagesPerCluster: 10. The tiers are pages, not queries: the tool runs elbow detection on the cumulative-clicks curve and returnsclustershead to tail.- Read per tier:
label,urlCount,urlPercentage,totalClicks,clickPercentage,totalImpressions,impressionPercentage,avgCtr(already 0-100),avgPosition,avgQueryDiversity(distinct named queries per page),zeroClickCountandtopPages.kneesare the two cut points by rank, andtotalsholds the page universe (urls,clicks,impressions). - A Head tier holding most clicks on a few percent of URLs is concentration risk: a handful of pages carry the property. A Long Tail tier with a large
urlPercentage, a smallclickPercentageand a highzeroClickCountis index bloat. A Chunky Middle withurlRange: nullmeans the curve had no middle (a few dominant pages over a flat rest). - If
truncatedis true, quotetruncationNoteand say the Long Tail tier is understated. If the response carriesemptyBecause, follow itsnextStep(usually a second call withincludeZeroClicks: true).sensitivity(low,normal,high) only moves the knees; re-run with another value only when the tiers look degenerate, and say so.
- Read per tier: