Skip to product information
Shopifyで訪問回数に応じてメッセージを切り替えて表示する方法
Published:2023.04.11

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

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.

View store information

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

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

Sample Codes

Message switching code

↗ Related Post

すべてのShopify TIPS

View all