public recordPageView()

in src/sessions/PageManager.ts [71:92]


    public recordPageView(pageId: string) {
        if (this.useCookies()) {
            this.recordInteraction = true;
        }

        if (!this.page && this.resumed) {
            this.createResumedPage(pageId);
        } else if (!this.page) {
            this.createLandingPage(pageId);
        } else if (this.page.pageId !== pageId) {
            this.createNextPage(pageId);
        } else {
            // The view has not changed.
            return;
        }

        // Attributes will be added to all events as meta data
        this.collectAttributes();

        // The SessionManager will update its cookie with the new page
        this.recordPageViewEvent();
    }