Custom script to stop tracking your own pageviews on Blogger blogs.
There's this settings on the Blogger Stats page that allows you to disable tracking your own pageviews. This setting takes effect and persist per browser session. Meaning, if you restart your computer, restart the browser, or visit the blog in an incognito window, then the setting will no longer works as it has to be re-enabled.
| Blogger settings to stop own pageviews. | 
That's because the Blogger setting creates a session cookie instead of a persistent cookie. The difference is that the session cookie persist on browser session while persistent cookie persist until it hits an expiration date.
The following script creates a persistent cookie that expires after 90 days. You’ll need to run it on each blog where you want to stop pageview tracking.
function stopBlogPageviewsCount() {
  let date = new Date();
  date.setTime(date.getTime() + (90 * 24 * 60 * 60 * 1000));
  let expires = "; expires=" + date.toGMTString();
  document.cookie = "_ns=2" + expires + "; path=/";
}
// stop pageviews on this session for 90 days
stopBlogPageviewsCount();