Skip to product information
【Dawn】Shopifyで購入に至るまでのページ閲覧履歴をorder.attributesとして注文情報に付与する設定例
Published:2024.09.07

[Dawn] Example of setting up Shopify to add page browsing history leading up to a purchase to order information as order.attributes

This is an example of how to add "page browsing history leading up to a purchase" to order information. Since tracking the details with GA4 can be a bit of a hassle, this is useful when you want to know the reason for each individual order.


Example of setting to add page browsing history leading up to purchase to order information as order.attributes


[Settings] Create a new section file "save_action_to_order" and set the schema and code


[How to use] Add the "Add page view history to orders" section to the footer section group and specify the parameter name to exclude from the history page URL.


[Notes]


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

View store information

[Dawn] Example of setting up Shopify to add page browsing history leading up to a purchase to order information as order.attributes

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

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Create a new section file "save_action_to_order" and set the schema and code.

↗ Related Post

すべてのShopify TIPS

View all