OptOut cookie piwik_ignore usage without iFrame inclusion

Hi,

thank you very much for the fast response and the hint. Unfortunately the method isUserOptedOut seems not to be available. This is dummy code trying to use it:

  <script type="text/javascript">
    var _paq = _paq || [];
    (function() {
      var u="//analytics.domain.tld/";
      _paq.push(['setTrackerUrl', u+'piwik.php']);
      _paq.push(['setSiteId', '10']);
      _paq.push([function () {
        if (this.isUserOptedOut()) {
          console.log("opt out");
        } else {
          console.log("opt in");
        }
      }])
      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
      g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
    })();
  </script>

This results in: Uncaught TypeError: this.isUserOptedOut is not a function
Looking at ‘this’ in the debuggers shows, I am in the context of the tracker as I see it`s functions but isUserOptedOut is not visible.

It is also not mentioned in the JS API in the docs. Maybe it is not available anymore?