Hi, i need also help with something similar, i’ve posted 301 Moved Permanently some days ago but no answer yet. I need to create a new visit every time a user login and finish the visit when he logout. Can somebody hep me¿?
Deleting the cookie actually didn’t work for me. I am wondering if “heuristics” are coming into play here. Here are the steps I took:
Log into Joomla
Verify that the cookies were created (three that begin with _pk)
Manually delete these cookies from firefox
Close browser, open browser
Verify that cookies no longer exist
Log into Joomla
Check the piwik_log_visit table for a new record, but no new record is created
So it seems that something other than the cookie is coming into play when determining if a new visit has occurred. Is there perhaps a configuration that could be toggled to disable heuristics (if that’s even a possible cause)?
The “idvisitor” parameter is clearly the first 16 characters, but I am having trouble locating the “res” parameter. Is there a particular substring of the above that represents this parameter?
After further investigating the API, I now understand how to force heuristics to fail by setting a false value for the user’s screen resolution. This approach is fine and well understood, but i’ve noticed that none of the visit attributes like screen resolution, plugin status, etc. are set when using the API vs. using the JS method. Since I’d rather not spend too many cycles on developing a JS function that can gather and set this information in a way that is accessible to PHP, I am wondering if anyone has any suggestions on doing this?
I will create a new thread on this topic, but any suggestions would be most helpful.