The Afterpay script is typically located in the checkout section of your Shopify store. After integrating Afterpay with your Shopify store, the necessary code for Afterpay functionality will automatically be added to your checkout page.