Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Order confirmation page - order specific tags


squareweb

Question

 

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 post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
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.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include.
I value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.
Squarespace. I've been a loyal and enthusiastic supporter of the platform since 2007. 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...