|
17 | 17 | Sentry.init({ dsn: '{{ SENTRY_DSN }}' }); |
18 | 18 | </script> |
19 | 19 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-44718512-1"></script> |
20 | | - <script> |
21 | | - window.dataLayer = window.dataLayer || []; |
22 | | - function gtag(){dataLayer.push(arguments);} |
23 | | - gtag('js', new Date()); |
24 | | - |
25 | | - gtag('config', 'UA-44718512-1'); |
26 | | - </script> |
27 | | - |
28 | | - {% if FACEBOOK_PIXEL_ID %} |
29 | | - <!-- Facebook Pixel Code --> |
30 | | - <script> |
31 | | - !function (f, b, e, v, n, t, s) { |
32 | | - if (f.fbq) return; n = f.fbq = function () { |
33 | | - n.callMethod ? |
34 | | - n.callMethod.apply(n, arguments) : n.queue.push(arguments) |
35 | | - }; |
36 | | - if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; |
37 | | - n.queue = []; t = b.createElement(e); t.async = !0; |
38 | | - t.src = v; s = b.getElementsByTagName(e)[0]; |
39 | | - s.parentNode.insertBefore(t, s) |
40 | | - }(window, document, 'script', |
41 | | - 'https://connect.facebook.net/en_US/fbevents.js'); |
42 | | - fbq('init', '{{ FACEBOOK_PIXEL_ID }}'); |
43 | | - fbq('track', 'PageView'); |
44 | | - {% block facebook_pixel_track %}{% endblock %} |
45 | | - </script> |
46 | | - <noscript><img height="1" width="1" style="display:none" |
47 | | - src="https://www.facebook.com/tr?id=462601617885706&ev=PageView&noscript=1" /></noscript> |
48 | | - <!-- End Facebook Pixel Code --> |
49 | | - {% endif %} |
50 | | - |
51 | | - {% if GOOGLE_TAG_MANAGER_ID %} |
52 | | - <!-- Google Tag Manager --> |
| 20 | + {# Google Tag Manager#} |
53 | 21 | <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
54 | 22 | new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
55 | 23 | j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
56 | 24 | 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
57 | 25 | })(window,document,'script','dataLayer','{{GOOGLE_TAG_MANAGER_ID}}');</script> |
58 | | - <!-- End Google Tag Manager --> |
59 | | - {% endif %} |
60 | | - |
| 26 | + {# End Google Tag Manager#} |
| 27 | + |
61 | 28 | {% block head %}{% endblock %} |
62 | 29 | </head> |
63 | 30 | <body> |
64 | | -{% if GOOGLE_TAG_MANAGER_ID %} |
65 | | -<!-- Google Tag Manager (noscript) --> |
| 31 | +{# Google Tag Manager (noscript)#} |
66 | 32 | <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{GOOGLE_TAG_MANAGER_ID}}" |
67 | 33 | height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
68 | | -<!-- End Google Tag Manager (noscript) --> |
69 | | -{% endif %} |
70 | | - |
| 34 | +{# End Google Tag Manager (noscript)#} |
71 | 35 | {% block navbar %} |
72 | 36 | <nav class="navbar navbar-dark bg-dark navbar-expand-md"> |
73 | 37 | <a class="navbar-brand" href="/">Python Pro</a> |
@@ -179,32 +143,5 @@ <h3 class="mt-3">Entre em contato</h3> |
179 | 143 | </div> |
180 | 144 | </div> |
181 | 145 | </footer> |
182 | | -<script> |
183 | | - (function (i, s, o, g, r, a, m) { |
184 | | - i['GoogleAnalyticsObject'] = r; |
185 | | - i[r] = i[r] || function () { |
186 | | - (i[r].q = i[r].q || []).push(arguments) |
187 | | - }, i[r].l = 1 * new Date(); |
188 | | - a = s.createElement(o), |
189 | | - m = s.getElementsByTagName(o)[0]; |
190 | | - a.async = 1; |
191 | | - a.src = g; |
192 | | - m.parentNode.insertBefore(a, m) |
193 | | - })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); |
194 | | - |
195 | | - ga('create', 'UA-44718512-1', 'python.pro.br'); |
196 | | - ga('send', 'pageview'); |
197 | | - |
198 | | - <!-- Hotjar Tracking Code for www.python.pro.br --> |
199 | | - (function(h,o,t,j,a,r){ |
200 | | - h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; |
201 | | - h._hjSettings={hjid:1307735,hjsv:6}; |
202 | | - a=o.getElementsByTagName('head')[0]; |
203 | | - r=o.createElement('script');r.async=1; |
204 | | - r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; |
205 | | - a.appendChild(r); |
206 | | - })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); |
207 | | - |
208 | | -</script> |
209 | 146 | </body> |
210 | 147 | </html> |
0 commit comments