Spaces:
Sleeping
Sleeping
Borg93
commited on
Commit
·
be3c9c0
1
Parent(s):
0f4c765
Update main.py
Browse files- app/main.py +14 -8
app/main.py
CHANGED
@@ -41,16 +41,22 @@ def load_markdown(language, section, content_dir="app/content"):
|
|
41 |
|
42 |
|
43 |
matomo = """
|
44 |
-
<!-- Matomo
|
45 |
<script>
|
46 |
-
var
|
47 |
-
|
48 |
-
(
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
</script>
|
53 |
-
|
|
|
54 |
"""
|
55 |
|
56 |
with gr.Blocks(title="HTRflow", theme=theme, css=css, head=matomo) as demo:
|
|
|
41 |
|
42 |
|
43 |
matomo = """
|
44 |
+
<!-- Matomo -->
|
45 |
<script>
|
46 |
+
var _paq = window._paq = window._paq || [];
|
47 |
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
48 |
+
_paq.push(['trackPageView']);
|
49 |
+
_paq.push(['enableLinkTracking']);
|
50 |
+
(function() {
|
51 |
+
var u="https://matomo.riksarkivet.se/";
|
52 |
+
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
53 |
+
_paq.push(['setSiteId', '25']);
|
54 |
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
55 |
+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
56 |
+
})();
|
57 |
</script>
|
58 |
+
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="https://matomo.riksarkivet.se/matomo.php?idsite=25&rec=1" style="border:0;" alt="" /></p></noscript>
|
59 |
+
<!-- End Matomo Code -->
|
60 |
"""
|
61 |
|
62 |
with gr.Blocks(title="HTRflow", theme=theme, css=css, head=matomo) as demo:
|