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

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

Link to comment

Create an account or sign in to comment

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

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