indexPageURLs with multiple Domains

we hosted above 90 Domains on one Typo3 Installation.
Every Domain with a own Page ID on Piwik and one ID with all Domains.
Our Problem is now, there a Pages with the same Name on different Domains eg “search”

a snippet from our JS Code

var _paq = _paq || [];
  _paq.push(["setDocumentTitle", + document.location.pathname +]);
  _paq.push(["setCookieDomain", XXXXX]);
  _paq.push(["setDomains", [XXXXX]]);