-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from questionlp/develop
Move Google and Umami analytics to base.html
- Loading branch information
Showing
4 changed files
with
42 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,40 @@ | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#0d47a1"> | ||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> | ||
{% if site_url and request.path %} | ||
<link rel="canonical" href="{{ site_url }}{{ request.path }}"> | ||
{% endif %} | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#0d47a1"> | ||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> | ||
{% if site_url and request.path %} | ||
<link rel="canonical" href="{{ site_url }}{{ request.path }}"> | ||
{% endif %} | ||
|
||
|
||
<!--Import Google Icon and IBM Plex Fonts--> | ||
<link href="{{ url_for('static', filename='material-icons/material-icons.css') }}" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet"> | ||
<!--Import Google Icon and IBM Plex Fonts--> | ||
<link href="{{ url_for('static', filename='material-icons/material-icons.css') }}" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet"> | ||
|
||
<!--Import Materialize --> | ||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/materialize.min.css') }}" media="screen"> | ||
<!--Import Materialize --> | ||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/materialize.min.css') }}" media="screen"> | ||
|
||
<!-- Import Custom CSS --> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> | ||
<!-- Import Custom CSS --> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> | ||
|
||
<!-- Plotly.js --> | ||
{% if use_latest_plotly %} | ||
<script src="{{ url_for('static', filename='js/plotly-latest.min.js') }}"></script> | ||
{% else %} | ||
<script src="{{ url_for('static', filename='js/plotly-stable.min.js') }}"></script> | ||
{% endif %} | ||
<!-- Plotly.js --> | ||
{% if use_latest_plotly %} | ||
<script src="{{ url_for('static', filename='js/plotly-latest.min.js') }}"></script> | ||
{% else %} | ||
<script src="{{ url_for('static', filename='js/plotly-stable.min.js') }}"></script> | ||
{% endif %} | ||
|
||
{% if ga_property_code %} | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ ga_property_code }}"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', '{{ ga_property_code }}'); | ||
</script> | ||
{% endif %} | ||
|
||
{% if umami_analytics %} | ||
<!-- Umami Analytics --> | ||
{{ umami_analytics|safe }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters