From 4aa5d0f13a7207910ac57733c8959148f94d0c32 Mon Sep 17 00:00:00 2001
From: Marc-Antoine Manningham <marc-antoine.m@outlook.com>
Date: Wed, 11 Dec 2024 16:09:11 -0500
Subject: [PATCH] fix: readd script

---
 aep-schedule-website/src/frontend/app.rs | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/aep-schedule-website/src/frontend/app.rs b/aep-schedule-website/src/frontend/app.rs
index 961fe02..d686189 100644
--- a/aep-schedule-website/src/frontend/app.rs
+++ b/aep-schedule-website/src/frontend/app.rs
@@ -22,6 +22,19 @@ pub fn shell(options: LeptosOptions) -> impl IntoView {
                 <HydrationScripts options />
                 <link rel="stylesheet" id="leptos" href="/pkg/aep-schedule-website.css" />
                 <MetaTags />
+                <script>
+                    var _paq = window._paq = window._paq || [];
+                    _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+                    _paq.push(["trackPageView"]);
+                    _paq.push(["enableLinkTracking"]);
+                    (function() {
+                            var u="//analytics.step.polymtl.ca/";
+                            _paq.push(["setTrackerUrl", u+"matomo.php"]);
+                            _paq.push(["setSiteId", "2"]);
+                            var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0];
+                            g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
+                    })();
+                </script>
             </head>
             <body>
                 <App />
-- 
GitLab