Track Page Views
Put the <push-broom> element on the pages you want counted.
<push-broom url="/page-slug"></push-broom> Choosing the URL
url is the path the view is filed under. If a path carries something you would rather not keep, like a user ID or other sensitive information, you can track a URL as /user/:id/. This will aggregate all /user/id view into a single page.
Client-side routing
If your site rewrites url in place, that is a new page view; you do not have to remove and re-add the element. Anything else that happens on the page is not a page view, so a re-render will not double-count. One element per page is enough.
Adding context
Any information beyond the URL can be added to the element via Custom Data.
Last updated