def METHOD_NAME(self, project, version, path, full_path, status):
    """Track page view with the given parameters."""
    # TODO: remove after the migration of duplicate records has been completed.
    if project.has_feature(Feature.DISABLE_PAGEVIEWS):
        return
    # Normalize paths to avoid duplicates.
    path = "/" + path.lstrip("/")
    full_path = "/" + full_path.lstrip("/")
    page_view, created = self.get_or_create(
        project=project,
        version=version,
        path=path,
        date=timezone.now().date(),
        status=status,
        defaults={
            "view_count": 1,
            "full_path": full_path,
        },
    )
    if not created:
        page_view.view_count = models.F("view_count") + 1
        page_view.save(update_fields=["view_count"])
    return page_view