# Screen tracking

Tell Screeb which page or screen your user is on, so you can target surveys and messages on where users are in your app.

Screeb targets surveys and messages on the page or screen the user is on. The help center shows how to check what Screeb receives: [Track page views and mobile screens](https://help.screeb.app/install/page-views-and-screens/).

## Page views are automatic

On the web, Screeb follows the page URL by itself, including in single-page apps: every navigation that changes `window.location` counts as a new page, and URL-based targeting rules work without code.

## Track a page view as an event

To trigger a survey on a specific navigation, or to attach properties to a page view, track an event from your router when the route changes:

```ts
import { Component } from "@angular/core";
import { NavigationEnd, Router } from "@angular/router";
import { filter } from "rxjs/operators";
import { Screeb } from "@screeb/sdk-angular";

@Component({ selector: "app-root", standalone: true, template: "" })
export class AppComponent {
  constructor(router: Router, screeb: Screeb) {
    router.events
      .pipe(filter((event): event is NavigationEnd => event instanceof NavigationEnd))
      .subscribe((event) => {
        screeb.eventTrack("page_viewed", { path: event.urlAfterRedirects });
      });
  }
}
```
