Reputation: 125
How I can return in Magento 2 (version 2.0.0) some fields for customer online grid such as IP, Last URL, etc. ?
There are only 6 columns available in the columns menu:
In Magento 2 beta version this fields were available:
Upvotes: 2
Views: 802
Reputation: 305
The simple answer:
No, you cant, and you should not even try. The standard solution as of today is to use a 3th party service/software like google analytics or piwik.
more explanation: The internal module responsible for this was removed, as it was not used in most cases, but had a big impact on performance. Especially the "last url" is a very expensive feature, which requires a database write on each and every request of a customer. This are expensive, add 100-300ms to every request of the user, and use IO resources which are important for the order process and can in a worst case scenario slow the whole order process down, if you have a lot of customers online at the same time. The last IP is maybe still possible to get from the last login entry. But I am not sure what magento stores related to this.
Also notable, there are countries where you are not allowed to store the full IP of users.
Upvotes: 1