|
10 | 10 | <html lang="en"> |
11 | 11 |
|
12 | 12 | <head> |
| 13 | + {% if site.ga and site.ga != "" %} |
| 14 | + <!-- Google tag (gtag.js) --> |
| 15 | + <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga }}"></script> |
| 16 | + <script> |
| 17 | + window.dataLayer = window.dataLayer || []; |
| 18 | + function gtag() { dataLayer.push(arguments); } |
| 19 | + gtag('js', new Date()); |
| 20 | + |
| 21 | + gtag('config', '{{ site.ga }}'); |
| 22 | + </script> |
| 23 | + {% endif %} |
13 | 24 | <title>{{site.title}}</title> |
14 | 25 |
|
15 | 26 | <!-- Meta --> |
|
52 | 63 | script-src |
53 | 64 | 'self' |
54 | 65 | 'unsafe-inline' |
| 66 | + 'unsafe-eval' |
55 | 67 | https://code.jquery.com |
56 | 68 | https://www.googletagmanager.com |
| 69 | + https://www.google-analytics.com |
57 | 70 | https://cdn.usefathom.com/script.js; |
58 | 71 | connect-src |
59 | 72 | 'self' |
60 | 73 | https://*.google-analytics.com |
61 | 74 | https://*.analytics.google.com |
| 75 | + https://*.googletagmanager.com |
62 | 76 | https://cdn.usefathom.com; |
63 | 77 | img-src |
64 | 78 | 'self' |
65 | 79 | https: |
66 | 80 | http: |
67 | 81 | data: |
68 | 82 | https://www.google-analytics.com |
| 83 | + https://www.googletagmanager.com |
69 | 84 | https://cdn.usefathom.com; |
70 | 85 | frame-src |
71 | 86 | 'self' |
72 | 87 | https://www.youtube.com;" http-equiv="Content-Security-Policy" /> |
73 | 88 |
|
74 | | - {% if site.ga and site.ga != "" %} |
75 | | - <!-- Google tag (gtag.js) --> |
76 | | - <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga }}"></script> |
77 | | - <script> |
78 | | - window.dataLayer = window.dataLayer || []; |
79 | | - function gtag() { dataLayer.push(arguments); } |
80 | | - gtag('js', new Date()); |
81 | | - |
82 | | - gtag('config', '{{ site.ga }}'); |
83 | | - </script> |
84 | | - {% endif %} |
85 | 89 | </head> |
86 | 90 |
|
87 | 91 | <body> |
|
0 commit comments