Jump to content

Order confirmation page - order specific tags

Recommended Posts

 

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
  • Replies 1
  • Views 596
  • Created
  • Last Reply
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 me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.