싱글페이지 애플리케이션을 클릭합니다. 새 가상 화면을 클릭하면 DebugView에 새 page_view 이벤트가 표시됩니다. page_view 이벤트 매개변수를 이전 page_view 이벤트와 비교하여 페이지 리퍼러 및 페이지 위치가 올바르게 업데이트되었는지 확인합니다.
[null,null,["최종 업데이트: 2025-04-29(UTC)"],[],["Developers using Google Analytics to measure page views on single-page applications (SPAs) should count page views for each user-interacted screen and accurately track the page referrer. To implement this, they can trigger virtual page views via browser history changes using the History API's `pushState()` and `replaceState()` methods, or through custom events with the `DocumentFragment` object. After implementation, debug mode should be enabled to verify new `page_view` events for each virtual screen, ensuring referrer and location data updates correctly.\n"],null,[]]