squareweb Posted March 3, 2021 Share Posted March 3, 2021 Hi, @tuanphan and @paul2009 . I am working on the order confirmation and I want to have customers specific on my order confirmation page. I added the below code In code injection of order confirmation and but the google analytics is unable to read that data. let me know if you can help in achieving the customer specific information on order confirmation page. heres the url of website: https://www.1fortheworld.org/ and heres the code I used: <!--ORDER CONFIRMATION PAGE CODE INJECTION--> <script> var sqsCheckoutOrderId = {orderId}; var sqsCheckoutOrderSubtotal = {OrderSubtotal}; var sqsCheckoutOrderSubtotalCents = {OrderSubtotalCents} var sqsCheckoutOrderGrandtotal = {OrderGrandtotal}; var sqsCheckoutOrderGrandtotalCents = {OrderGrandtotalCents}; var sqsCheckoutCustomerEmailAddress = "{customerEmailAddress}"; </script> <!--ORDER CONFIRMATION PAGE CODE INJECTION END--> any help would be highly appreciated. Thanks alot Link to comment
paul2009 Posted March 3, 2021 Share Posted March 3, 2021 35 minutes ago, squareweb said: I added the below code In code injection of order confirmation and but the google analytics is unable to read that data. If you're using Google Analytics to track conversions, Squarespace automatically sends the following information for every received order, without adding code: Order ID Your store name Purchase total (includes shipping) Customer's city, region, and country Product name SKU You can find more information in this guide: Using Google Analytics with Squarespace. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment