Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 605 Bytes

trackPageView.md

File metadata and controls

30 lines (17 loc) · 605 Bytes

@mbinjamil/matomo-client / trackPageView

Function: trackPageView()

trackPageView(pageTitle?): void

Logs a page view. The URL is set to window.location.href because Matomo by default does not support client-side routing

Parameters

pageTitle?: string

A custom title that overrides the default HTML page title

Returns

void

Example

import { trackPageView } from "@mbinjamil/matomo-client";

trackPageView();

Source

index.ts:56