Skip to main content
Version: next

Configure Page Tracking

Learn how to configure and customize page tracking to ensure accurate analytics and recommendation generation for your Netup integration.

Prerequisites

Before configuring page tracking, ensure you have:

Default Page Tracking

The analytics plugin automatically tracks different page types based on page titles. The default configuration recognizes the following pages:

Page TypeDefault TitleTracked Data
Home Page"Home"homePage: true
Product Page"Product"productPage: { categoryId, productId }
Category Page"Category"categoryPage: categoryId
Cart Page"Cart"cartPage: true
Search Page"Search"searchPage: { searchRequest, productId, categoryId }
Global PageAny otherglobalPage: true

Customizing Page Tracking

You can customize the page titles that trigger tracking if you use custom titles for overridden pages:

app/analytics.ts
import { createNetupAnalyticsPlugin } from "@front-commerce/netup/analytics";

export default {
analytics: {
plugins: [
createNetupAnalyticsPlugin({
pageTrackers: {
homePage: "Home Page",
productPage: "Product Page",
categoryPage: "Category Page",
cartPage: "Cart Page",
searchPage: "Search Page",
},
}),
],
} satisfies AnalyticsConfig,
};