|
290 | 290 |
|
291 | 291 | {%- block analytics %}
|
292 | 292 | <script type="text/javascript">
|
293 |
| - var _gaq = _gaq || []; |
294 |
| - var pluginUrl = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.') + 'google-analytics.com/plugins/ga/inpage_linkid.js'; |
295 |
| - _gaq.push(['_require', 'inpage_linkid', pluginUrl]); |
296 |
| - _gaq.push(['_setAccount', 'UA-7301842-8']); |
297 |
| - _gaq.push(['_setDomainName', 'docs.mongodb.org']); |
298 |
| - {#- _gaq.push(['_setAllowLinker', true]); -#} |
299 |
| - {%- if (pagename == "meta/401") or (pagename == "meta/403") or (pagename == "meta/404") or (pagename == "meta/410") %} |
300 |
| - _gaq.push(['_trackPageview', '/manual/{{pagename}}/?page=' + document.location.pathname + document.location.search + '&from=' + document.referrer]); |
301 |
| - {%- else %} |
302 |
| - _gaq.push(['_trackPageview']); |
303 |
| - {%- endif %} |
304 |
| - |
305 |
| - (function() { |
306 |
| - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
307 |
| - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
308 |
| - var s = document.getElementsByTagName('script')[0]; |
309 |
| - s.parentNode.insertBefore(ga, s); |
310 |
| - })(); |
| 293 | +var _gaq = _gaq || []; |
| 294 | +var pluginUrl = (('https:' == document.location.protocol) ? 'https://ssl.' : 'http://www.') + 'google-analytics.com/plugins/ga/inpage_linkid.js'; |
| 295 | +_gaq.push(['_require', 'inpage_linkid', pluginUrl]); |
| 296 | +_gaq.push(['_setAccount', 'UA-7301842-8']); |
| 297 | +_gaq.push(['_setDomainName', 'docs.mongodb.org']); |
| 298 | +{%- if (pagename == "meta/401") or (pagename == "meta/403") or (pagename == "meta/404") or (pagename == "meta/410") %} |
| 299 | +_gaq.push(['_trackPageview', '/manual/{{pagename}}/?page=' + document.location.pathname + document.location.search + '&from=' + document.referrer]); |
| 300 | +{%- else %} |
| 301 | +_gaq.push(['_trackPageview']); |
| 302 | +{%- endif %} |
| 303 | +(function() { |
| 304 | + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| 305 | + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| 306 | + var s = document.getElementsByTagName('script')[0]; |
| 307 | + s.parentNode.insertBefore(ga, s); |
| 308 | + })(); |
311 | 309 | </script>
|
312 | 310 | {%- endblock %}
|
313 | 311 | {%- block marketo %}
|
|
0 commit comments