I want to store the search history which a user has followed to find a product. It can arrive to the landing page of the product through numerous paths, so I want them stored somewhere. I have discarded a cookie approach, as I would like to allow the user to send the URL to another user and still keep the data. So I thought of storing a database ticket which goes in the URL. But now I am doutbful about storing in the server part of the URL, for instance,
or in the client part,
This later approach obliges me to load the content via AJAX. Which is more convenient with respect to SEO and other considerations?