Step 1. Initialize. Set Action Type to Initialize and enter your API Key. Optionally set Language for a multi-language store and enable Collect Email. This tag has to fire on every page so clerk.js loads.
Step 2. Product views. Action Type Track Product View, with Product IDs mapped to a Data Layer Variable that resolves to the current product ID on detail pages.
Step 3. Cart state. Action Type Track Cart, with Product IDs mapped to a variable returning the array of products currently in the cart. Fire it on cart updates: add, remove and cart page views.
Step 4. Purchases. Action Type Track Purchase/Sale, mapping Order ID and Product IDs to your confirmation page variables. Add the customer email if you want post-purchase email recommendations.
Step 5. Searches. Action Type Track Search, with Search Query mapped to the visitor's search term. Fire it when a search happens, usually on the results page or a custom search event.
Sequencing. Set the Initialize tag as a setup tag for all the others, so clerk.js is loaded before anything tries to use it.