Jump to content

Added javascript in Order Confirmation page but it's not showing up.

Recommended Posts

I've added some pretty basic javascript to the Order Confirmation Page text box of the Code Injection section. The code is as follows:

<script type="text/javascript">
AffTracker.setWebsiteUrl("https://hostilehare.squarespace.com/products");
AffTracker.add_order({
  order_id: "{orderId}",
  order_currency: "USD",
  order_total: "{orderGrandTotal}"
});
</script>

There's no code errors here. In the all footer injection, I include the affiliate software js.

Anyway, we are on the Business Advanced plan and should have the ability to do the code injection but the code isn't showing up on the confirmation page.

Is there a bug somewhere?

Link to comment
  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.