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:
- Set up the Netup extension in your Front-Commerce application
- Configured analytics with the analytics plugin
Default Page Tracking
The analytics plugin automatically tracks different page types based on page titles. The default configuration recognizes the following pages:
Page Type | Default Title | Tracked 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 Page | Any other | globalPage: 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,
};