Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +11 -5
app/main.py
CHANGED
@@ -37,16 +37,22 @@ def load_markdown(language, section, content_dir="app/content"):
|
|
37 |
|
38 |
|
39 |
matomo = """
|
40 |
-
<!-- Matomo
|
41 |
<script>
|
42 |
-
var
|
43 |
-
|
|
|
|
|
44 |
(function() {
|
|
|
|
|
|
|
45 |
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
46 |
-
g.async=true; g.src='
|
47 |
})();
|
48 |
</script>
|
49 |
-
|
|
|
50 |
"""
|
51 |
|
52 |
with gr.Blocks(title="HTRflow", theme=theme, css=css, head=matomo) as demo:
|
|
|
37 |
|
38 |
|
39 |
matomo = """
|
40 |
+
<!-- Matomo -->
|
41 |
<script>
|
42 |
+
var _paq = window._paq = window._paq || [];
|
43 |
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
44 |
+
_paq.push(['trackPageView']);
|
45 |
+
_paq.push(['enableLinkTracking']);
|
46 |
(function() {
|
47 |
+
var u="https://matomo.riksarkivet.se/";
|
48 |
+
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
49 |
+
_paq.push(['setSiteId', '25']);
|
50 |
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
51 |
+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
52 |
})();
|
53 |
</script>
|
54 |
+
<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>
|
55 |
+
<!-- End Matomo Code -->
|
56 |
"""
|
57 |
|
58 |
with gr.Blocks(title="HTRflow", theme=theme, css=css, head=matomo) as demo:
|