diff --git a/header-snippet.html b/header-snippet.html new file mode 100644 index 0000000000000000000000000000000000000000..d38e9e30dba311509875b6d6d70006d112800062 --- /dev/null +++ b/header-snippet.html @@ -0,0 +1 @@ +<script defer data-domain="fselo.get-racing.de" src="https://analytics.get-racing.de/js/script.js"></script> \ No newline at end of file diff --git a/main.py b/main.py index 597fc772e8bc2d52632e7d5de5452bc8632c0e33..2105c9940a64bc7dd330b7c22818adf48af01f8f 100644 --- a/main.py +++ b/main.py @@ -65,6 +65,8 @@ class EloSystem: self.LINK_COLOR_HOVER = "#cc3700" else: raise + with open("header-snippet.html") as header_snippet: + self.header_snippet = header_snippet.read() def load_competition_meta_data(self): if self.competition_type == "combustion": @@ -257,6 +259,7 @@ class EloSystem: <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Formula Student {self.competition_type} Elo Rankings</title> + {self.header_snippet} <style> body {{ display: flex; @@ -510,6 +513,7 @@ class EloSystem: <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{team_name} - Elo Profile</title> + {self.header_snippet} <style> body {{ font-family: Arial, sans-serif; diff --git a/public/index.html b/public/index.html index f2ce8a02c01ecdcd5d4ba1533fd0af0066bf4805..5c7b3b1b2d8f479f1de4b1642f175722f81a54c8 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,7 @@ <head> <meta charset="UTF-8"> <title>Formula Student World Elo</title> + <script defer data-domain="fselo.get-racing.de" src="https://analytics.get-racing.de/js/script.js"></script> <style> body { display: flex;