diff --git a/ecommerce/templates/checkout_interstitial.html b/ecommerce/templates/checkout_interstitial.html
index 6706435a9..af309783c 100644
--- a/ecommerce/templates/checkout_interstitial.html
+++ b/ecommerce/templates/checkout_interstitial.html
@@ -15,12 +15,6 @@
Redirecting to the payment processor...
{% endfor %}
- {% if ga_purchase_flag %}
- {{ ga_purchase_payload | json_script:"ga-purchase-payload" }}
-
- {% endif %}
diff --git a/ecommerce/views/v0/__init__.py b/ecommerce/views/v0/__init__.py
index a263cfcef..a0b528778 100644
--- a/ecommerce/views/v0/__init__.py
+++ b/ecommerce/views/v0/__init__.py
@@ -573,6 +573,7 @@ def post_checkout_redirect(self, order_state, order, request):
{
"type": USER_MSG_TYPE_PAYMENT_ACCEPTED,
"run": order.lines.first().purchased_object.course.title,
+ "order": order.reference_number,
},
)
else:
diff --git a/frontend/public/package.json b/frontend/public/package.json
index b32e36950..18a60a6d7 100644
--- a/frontend/public/package.json
+++ b/frontend/public/package.json
@@ -86,7 +86,7 @@
"react-device-detect": "1.17.0",
"react-document-title": "2.0.3",
"react-dom": "16.14.0",
- "react-ga": "2.7.0",
+ "react-ga4": "^2.1.0",
"react-google-recaptcha": "1.1.0",
"react-hot-loader": "4.13.1",
"react-markdown": "5.0.3",
diff --git a/frontend/public/src/components/TopBar.js b/frontend/public/src/components/TopBar.js
index 789e7a2db..656650b7c 100644
--- a/frontend/public/src/components/TopBar.js
+++ b/frontend/public/src/components/TopBar.js
@@ -31,7 +31,10 @@ const TopBar = ({ currentUser }: Props) => {
return (
{showComponent ? (
-
+
) : null}