We are building a website which has a set of public pages, and private pages. For Web Analytics, we are using Google Analytics.
We have a unique userId
which can identify the user once he login. So this takes care of the private pages in the site.
We have couple of questions related to the User identification.
- For the public pages, since we do not have a userId, should we leave the
userId
property as empty? - Is there a way in which we can link the user's activity that happened between the private and public pages (assuming the cookies are there in the browser). Does GA rely on the clientId property to link it?
- What is the recommended approach with respect to user id tracking when we have public and private pages in the same site?