Piwik problem on CDN

I host a mediawiki site and its on CDN.

For some reason, Piwik is not tracking requests from my CDN site. When I access the site directly from the webhost, I can see entries in Piwik. Is there some special setting required for sites hosted on CDN or sites using Mediawiki?

Thanks.