@mayurr87 opened this Issue on July 13th 2015

I am using piwik to find analyse on website have got the js code from setting option of the piwik.

                    <!-- Piwik -->

script type
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
paq.push(["setCookieDomain", ".techforum-worldline.rhcloud.com"]);
paq.push(["setDomains", [".techforum-worldline.rhcloud.com"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['appendToTrackingUrl', 'bots=1']);
(function() {
var u="//piwik-techforumatos.rhcloud.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
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);
})();

Have pasted above code just above

@tsteur commented on July 13th 2015 Owner

Just a guess, maybe instead of var u="//piwik-techforumatos.rhcloud.com/"; try var u="http://piwik-techforumatos.rhcloud.com/"; or https://...

@tsteur commented on July 13th 2015 Owner

If it doesn't work, it would be great if you could remote debug your PhoneGap app and let us know if there are any errors

@mayurr87 commented on July 14th 2015

Bravooo!!!!......Thanks a lot...

var u="http://piwik-techforumatos.rhcloud.com/"; works for me...

Searched a lot for this and final you helped. hope on next version piwik site will give the proper js code. because its very difficult to debug third party lib.

@mattab commented on July 14th 2015 Owner

@tsteur do you reckon we should do something to prevent such issues in the future (product improvement, or otherwise a FAQ maybe?)

@tsteur commented on July 14th 2015 Owner

Was thinking about this as well. Not sure what best solution would be. If we had a type "PhoneGap App" (similar to type Mobile App or Intranet) then we could generate the tracking code differently based on that but it will maybe not happen that we have such a type.

An option in the tracking code generator is maybe too much as only a very few sites are actually PhoneGap apps. Maybe a FAQ entry? But this will be hard to find. Not sure what to do. FAQ seems like easiest solution for now.

@mattab commented on July 15th 2015 Owner
This Issue was closed on July 14th 2015
Powered by GitHub Issue Mirror