NonplayerCharacter

JS | GA | Identify unique pageviews

Feb 10th, 2023 (edited)
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type
  2. // Count only unique pageviews, i.e., if
  3. performance.getEntriesByType("navigation")[0].type === "navigate"
Tags: GA
Advertisement
Add Comment
Please, Sign In to add comment