Homepage personalisation using cookies

Martin_Dacre
New Member
1 0 0

Hi, i want to personalise the homepage content based on a 'non-logged' users previous web activity. By personalise i mean I want all the homapage banners & graphics etc to reflect the category they previously visited.

For example I have 3 main product categories. Lets say Cats, Dogs and Birds. If they were on the website yesterday and the last page they visited was within the Dogs category. When they go back to the website say in a weeks time I want the homepage banners, graphics and featured products all to be related to dogs.

If this were php, i would set a cookie and read it in when they visit the homepage and customise the homepage based on the value of that cookie.

How could i go about doing this in liquid?

Thanks.

0 Likes