Skip to product information
1 of 1
Published:2024.09.07

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

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

Applications

  • Tracking Notes

How to implement

  • Javascript
View full details

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.

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