Add AI English name translation and aggregate website view analytics.
Website views chart uses kind=all across page kinds; home hits also count static-images loads. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
0d9c2fd8ea
commit
0c1c3f7ff9
@@ -50,9 +50,9 @@ export function pageKindRequiresEntity(kind: WebsitePageKind): boolean {
|
||||
return DETAIL_KINDS.has(kind);
|
||||
}
|
||||
|
||||
/** Maps home dashboard chart ids to analytics page kinds. */
|
||||
export const HOME_CHART_VIEW_KIND: Partial<Record<string, WebsitePageKind>> = {
|
||||
website_views_30d: 'home',
|
||||
/** Maps home dashboard chart ids to analytics page kinds (`all` = every storefront page). */
|
||||
export const HOME_CHART_VIEW_KIND: Partial<Record<string, WebsitePageKind | 'all'>> = {
|
||||
website_views_30d: 'all',
|
||||
product_views_30d: 'product_detail',
|
||||
portfolio_views_30d: 'portfolio_detail',
|
||||
blog_views_30d: 'blog_detail',
|
||||
|
||||
Reference in New Issue
Block a user