Added tracking of connect button via umami

This commit is contained in:
Philipp 2021-11-09 14:01:43 +01:00
parent d9221087d0
commit 5a7d1fdcb1
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
{{if eq $gamemode.ID $server.GamemodeID -}} {{if eq $gamemode.ID $server.GamemodeID -}}
{{if ne $server.Map "Server didn't reply." -}} {{if ne $server.Map "Server didn't reply." -}}
<tr class="text-truncate"> <tr class="text-truncate">
<td><a href="steam://connect/{{$server.ServerIP}}"> <td><a href="steam://connect/{{$server.ServerIP}}" class="umami--click--connect">
{{range $flag := $flags -}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP -}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x> <img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>
@ -45,7 +45,7 @@
{{if eq $gamemode.ID $server.GamemodeID -}} {{if eq $gamemode.ID $server.GamemodeID -}}
{{if ne $server.Map "Server didn't reply." -}} {{if ne $server.Map "Server didn't reply." -}}
<tr class="text-truncate"> <tr class="text-truncate">
<td><a href="steam://connect/{{$server.ServerIP}}"> <td><a href="steam://connect/{{$server.ServerIP}}" class="umami--click--connect">
{{range $flag := $flags -}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP -}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x> <img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>

View file

@ -21,7 +21,7 @@
{{if eq $gamemode.ID $server.GamemodeID -}} {{if eq $gamemode.ID $server.GamemodeID -}}
{{if ne $server.Map "Server didn't reply." -}} {{if ne $server.Map "Server didn't reply." -}}
<tr class="text-truncate"> <tr class="text-truncate">
<td><a href="steam://connect/{{$server.ServerIP}}"> <td><a href="steam://connect/{{$server.ServerIP}}" class="umami--click--connect">
{{range $flag := $flags -}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP -}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x> <img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>
@ -48,7 +48,7 @@
{{if eq $gamemode.ID $server.GamemodeID -}} {{if eq $gamemode.ID $server.GamemodeID -}}
{{if ne $server.Map "Server didn't reply." -}} {{if ne $server.Map "Server didn't reply." -}}
<tr class="text-truncate"> <tr class="text-truncate">
<td><a href="steam://connect/{{$server.ServerIP}}"> <td><a href="steam://connect/{{$server.ServerIP}}" class="umami--click--connect">
{{range $flag := $flags -}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP -}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x> <img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>