I have a custom module . In my observer i have to know the current user duration & current user ip in fronted . So i write the code for user ip . Now if a user visit my website i want to get is this is the first page he visited in my website.
For example i have home , about, contact page . So when customer first time visit home then i have to get count=1 , if customer visiting about after home page then count =2 , if customer visiting contact after about then count=3 etc. Is there any method i can get this ?
Or visiting pages i want to know how much duration he is in the website . If the visitor closed window and take the website again the time should start from zero .
I have to solve this question in order to get answer for getStoreCurrency VS getCurrentCurrency ( compare store currency & getCurrentCurrency)
Please help.