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]

