Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Problem with noscript. (no replies)

$
0
0
Hello,
This is my first topic and I would like to say Hello.
I have a problem with countig visit in my website. For users with javascript everythink is looks go. But if visitor have a javascript turn off (when use for example program "NoScript") I don't see any log in Piwik. Even if user set in program "non-blocking" my website.

I use:
Piwik 2.3
PHP Version 5.3.27
Joomla! Version Joomla! 2.5.7 Stable [ Ember ]

My code in page:
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.mywebsite.com/piwik/";
    _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.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript>
<!-- Piwik Image Tracker -->
<img src="http://www.mywebsite.com/piwik/piwik.php?&amp;idsite=1&amp;rec=1&urlref&amp;_cvar={&quot;5&quot;:[&quot;Non Bot&quot;,&quot;No Javascript&quot;]}" style="border:0" alt="" />
<!-- End Piwik -->
 </noscript>

And one more thing:
When I use Safari in iPhone I don't see a log of visit. But when I use for example Opera browser in this iPhone I see the log. When I use another iPhone and safari everything is ok (I see the log).
Is there anyone can help me with these issues?
Regard,
Maciej

Viewing all articles
Browse latest Browse all 4243

Trending Articles