diff --git a/static/scripts/main.js b/static/scripts/main.js index d077d27..4eb8ea5 100644 --- a/static/scripts/main.js +++ b/static/scripts/main.js @@ -103,6 +103,7 @@ async function loadProducts() { } function removeProduct(element_to_remove){ + umami.track('Remove Product'); const product_row = document.getElementById('product_row') const products = product_row.children @@ -143,15 +144,18 @@ function removeProduct(element_to_remove){ } function payCash() { + umami.track('Pay Cash button'); const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','') window.location.href = "/pay_cash/" + total_cost } function payCard() { + umami.track('Pay Card button'); const total_cost = document.getElementById('totalprice').innerHTML.replace('€ ','') window.location.href = "/pay_card/" + total_cost } function toMain() { + umami.track('To Main button'); window.location.href = "/"; } \ No newline at end of file diff --git a/templates/index.jinja b/templates/index.jinja index a487e14..31067d2 100644 --- a/templates/index.jinja +++ b/templates/index.jinja @@ -25,7 +25,7 @@