Skip to product information
1 of 1
Published:2023.04.11

How to change the message displayed depending on the number of visits in Shopify

How to change the message displayed depending on the number of visits in Shopify

Applications

  • Improve bounce rate

How to implement

  • Javascript
View full details

This is a way to switch messages depending on the number of visits using the theme section in Shopify without using an app. Liquid cannot access cookies or localStorage, so you have to use Javascript, but this is an example of how to set it up.


How to switch messages depending on the number of visits (using Javascript since Liquid cannot reference cookies or localStorage)


Add your customized Liquid section to the template where you want it to appear and insert the code.


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Message switching code

Related Post