|
1 | 1 | <head> |
| 2 | + {% if jekyll.environment == "production" %} |
2 | 3 | <!-- Google tag (gtag.js) - GA4 + Google Ads --> |
3 | 4 | <script async src="https://www.googletagmanager.com/gtag/js?id=G-HNBF12R3GQ"></script> |
4 | 5 | <script> |
|
15 | 16 | 'anonymize_ip': true, |
16 | 17 | 'cookie_flags': 'SameSite=None;Secure' |
17 | 18 | }); |
18 | | - |
| 19 | + |
19 | 20 | // Google Ads conversion tracking |
20 | | - // Note: Browser CORS warnings may appear but are harmless - Google Ads uses |
21 | | - // cross-origin iframes for conversion tracking which triggers browser security checks |
| 21 | + // Note: Browser cross-origin frame warnings may appear but are harmless - Google uses |
| 22 | + // cross-origin iframes for tracking which triggers browser security checks. |
22 | 23 | gtag('config', 'AW-17223867024', { |
23 | 24 | 'anonymize_ip': true, |
24 | 25 | 'cookie_flags': 'SameSite=None;Secure' |
25 | 26 | }); |
26 | 27 | </script> |
| 28 | + {% endif %} |
27 | 29 |
|
| 30 | + {% if jekyll.environment == "production" %} |
28 | 31 | <script type="text/javascript"> |
29 | 32 | (function (c, l, a, r, i, t, y) { |
30 | 33 | c[a] = c[a] || function () { |
|
37 | 40 | y.parentNode.insertBefore(t, y); |
38 | 41 | })(window, document, "clarity", "script", "s41g100uv8"); |
39 | 42 | </script> |
| 43 | + {% endif %} |
40 | 44 |
|
41 | 45 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
42 | 46 | <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
47 | 51 |
|
48 | 52 | <!-- Performance: preconnect to critical third-parties --> |
49 | 53 | <link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin> |
| 54 | + <link rel="dns-prefetch" href="//cdn.jsdelivr.net"> |
| 55 | + |
| 56 | + {% if jekyll.environment == "production" %} |
50 | 57 | <link rel="preconnect" href="https://www.googletagmanager.com" crossorigin> |
51 | 58 | <link rel="preconnect" href="https://www.google-analytics.com" crossorigin> |
52 | 59 | <link rel="preconnect" href="https://www.clarity.ms" crossorigin> |
53 | | - <link rel="dns-prefetch" href="//cdn.jsdelivr.net"> |
54 | 60 | <link rel="dns-prefetch" href="//www.googletagmanager.com"> |
55 | 61 | <link rel="dns-prefetch" href="//www.google-analytics.com"> |
56 | 62 | <link rel="dns-prefetch" href="//www.clarity.ms"> |
| 63 | + {% endif %} |
57 | 64 |
|
58 | 65 | <!-- Fonts (avoid @import in CSS) --> |
59 | 66 | <link rel="preconnect" href="https://fonts.googleapis.com"> |
|
0 commit comments