Users show up twice in log - same IP, same time


#1

Many of the users show up in Piwik twice. The log indicates the same IP Address, the same time, and the same pages visited. I am attaching a file with a screen shot of an example which shows this clearly. I will provide any details that would help, and I really appreciate any suggestions. I have not seen this issue on the Forum, so perhaps it is something in my set up. Thank you!


#2

Let me clarify: when a user logs in to our website, that one login appears twice in the Piwik log. It is the same login, but shows up twice.


#3

Your problem is you have the image tracker on there too… Look at the code I found on your site:


  <!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  // _paq.push(["setCookieDomain", "*.kirbyrisk.com"]);  
  // you can set up to 5 custom variables for each visitor
	_paq.push(["setCustomVariable", 1, "Visitor Name",  "Visitor Not Logged In", "visit"]);
	_paq.push(["setCustomVariable", 2, "Visitor Account",  "Visitor Not Logged In", "visit"]);
	// you can set up to 5 custom variables for each action (page view, download, click, site search)
	_paq.push(["setCustomVariable", 1, "Page Visitor", "Not Logged In Page", "page"]);
	_paq.push(["setCustomVariable", 2, "Page Account", "Not Logged In Page", "page"]);
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://coney.arvixe.com/~kirbyweb/";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "3"]);
    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>
<!-- End Piwik Code -->

<!-- Piwik Image Tracker -->
<img src="https://coney.arvixe.com/~kirbyweb/piwik.php?idsite=3&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

The following lines should be removed:


<!-- Piwik Image Tracker -->
<img src="https://coney.arvixe.com/~kirbyweb/piwik.php?idsite=3&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

You should only run one at a time…


#4

Actually you can add that code in between the no script tags like below:

Using this makes it where only if JS is not present or available, then it will revert back to the image tracker.


<noscript>
<!-- Piwik Image Tracker -->
<img src="https://coney.arvixe.com/~kirbyweb/piwik.php?idsite=3&rec=1" style="border:0" alt="" />
<!-- End Piwik -->
</noscript>


#5

Thank you! I’m sure that is correct.


#6

At one point, I had the tracker code in between tags, and removed the tags to test something. I put it back in there. Thanks for guiding me to this. I should have seen it myself!


#7

No problem. Just glad to know I helped!