if (window.Readarr.analytics) {
  const d = document;
  const g = d.createElement('script');
  const s = d.getElementsByTagName('script')[0];
  g.type = 'text/javascript';
  g.async = true;
  g.defer = true;
  g.src = '//piwik.sonarr.tv/piwik.js';
  s.parentNode.insertBefore(g, s);
}
