How does PIWIK count the visit time - matomo

Does PIWIK count the visit time, if the browser tab is not active? If not, is it possible to count the time, the user is actively using the website?

Yes, it is possible and was introduced in one of the recent Piwik versions. See:
http://piwik.org/faq/how-to/#faq_21158

Related

visitors not being logged Matomo

I've moved my websites to a new server and at the same time moved Motomo analytics
Matomo no longer records the website visits.
The settings etc and tracking errors all show no problem
How can I find where it's not working?
Help!
Do you have logs registered in your Matomo database? If your Matomo tracking code is properly installed, Matomo would record visits in your database. To check if you have logs in your database, go to Matomo > Visitors > Visits log, and select “today” in the calendar. If you see recent visitor information, it means that the visitor tracking is working, but maybe there is a problem with reports archiving.
If you see visits in the Visits Log, then please check your archiving works correctly.
Review our doc here: https://matomo.org/docs/setup-auto-archiving/
If you are not seeing visits in the Visit log, then there is an issue with the data tracking. Please check this FAQ for more information and steps to troubleshoot: https://matomo.org/faq/troubleshooting/faq_58/

"This page can't load Google Maps correctly."

I have an active Google Cloud Platform account for the purpose of integrating the map functions into my website. Currently I have a map on my contact page (https://voltfuse.com/contact) and on my dealers page (https://voltfuse.com/dealers).
Until recently, I noticed that the map on my dealer page is no longer working, telling me that it was unable to correctly load. You can see an image of this in the attached "Broken Map.png".
It's strange because the map is working perfectly with the same API on my contact page, which can be seen on "Working Map.png".
The code for the broken page can be found here: https://codeshare.io/5w0ez7
I am wondering if anyone has any ideas as to why the map is not loading.
Thanks,
Alex
Broken Map.png Working Map.png
Google has recently imposed strict limits on the Google Maps JavaScript API. You must now enter your billing information in the Console to enable higher limits for your account. As of the date of this answer, after entering your billing information, you will receive $200 worth of free usage per month.
See more info at https://developers.google.com/maps/documentation/javascript/usage-and-billing

Is the instance_url of a sales force user remains same or is there a chance for a change to that?

I am using salesforce login api to get the instance_url of a user. Is there any chance that the instance_url may change in later point of time?
Yes, it can change over time, your organization can be migrated to a new pod which would change the instance_url. The only long term stable URL is if you have my domains turned on and you use the my domains version of the url.

PIWIK Store visits per User ID as well as or instead of per IPs

I have piwik to track my website visits. My website has a login page and I would like to do the analysis per userid, not necessarily per IP. Is there a way where piwik can store my user session variable in order me to know exactly which users used a determined page?
Thanks in advance.
The way to do this is via custom variable.
Basic Code:
piwikTracker.setCustomVariable(1, "Member", "<?php echo $username;?>", "visit"); piwikTracker.trackPageView();
visit scope will last for the session
Piwik Docs at:
http://piwik.org/docs/custom-variables/
Instead of using a custom variable, you could use Piwik's built-in User ID feature, which also has the added benefit of allowing Piwik to more accurately track uniques.

How can I get the Session values after payment? (CakePHP-Paypal Hosted Solution)

I am using CakePHP for my application and I was able to integrate the Paypal hosted solution. Users are successfully redirected to Paypal to complete their payment. Once they have completed, they are returned to my website.
At first, it was taking the user to the login page (as the session was getting removed). To prevent this, I have opened the Paypal page in a new window. Now they are not being asked to login again and keeping the $this->Session->read('Auth.User') intact. However, it is not remembering any other session data. For example, I had a session variable 'invoice_number' which is not available after they are returning from the Paypal website.
I have noticed that the session id doesn't stay the same before and after they completed the payment.
I have changed the core.php to reduce the session security by setting it to low, increased the session time, and I have also modified so that it will only start the session if no session id was found (saw this on a CakePHP ticket/bug).
Interestingly, no in Chrome, it remembers all the session variable, the session ids are same and works fine. But in Firfox, it's not working!
Is there anyway to keep the session alive with the same id/ session variables alive so that even after the payment when they are returning, my application knows what the invoice number for this payment was.
Any help would be really appreciated.
Kind regards,
Tasin
try turn off referer checks in core.php, that should do the trick.
Try setting Security.level to something other than high in core.php.
As I wasn't able to find a suitable solution for this problem, I had to find a work around for this.
As I mentioned, when redirecting, the 'Auth.User' information was still intact. I used this to retrieve information which I stored into the database before sending the users to the PayPal website.
Once the payment is completed and the user is returned to the confirmation page on my site, I am retrieving the data from the database based on 'Auth.User' session data.
Not the perfect solution, but for the time being, it is kind of working.
If welcome any solution that is better than this. Please let me know.
Many thanks,
Tasin

Resources