So we plan to track a user's activity within our website which are in PHP. What we want to know is track a unique session for a user from the time he first visits a page in our site, the pages he visited next, and visited last.
Some kind of tracking his footprint through our site. We actually have identified 2 methods, one is using a custom code, and the other is analytics.js.
We find analytics.js too much for this (and my take more time to setup including time for our Internal Team to familiarize/learn the tool). Considering what we need is just getting the timelogs of the user's session.
So we'll be going with a custom code added to each of the pages that need tracking. This script will do the follow:
That's our plan so just wondering if the above is acceptable, or if there's any other easier way to do it?
Thanks in advance StackOverflow community!