Skip to content

Commit e13dd00

Browse files
author
Ed Costello
committed
Enable replacing analytics in 404 page
1 parent 08b79b7 commit e13dd00

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

themes/mongodb/layout.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -222,26 +222,26 @@ <h3>{{ _('Navigation') }}</h3>
222222
</div>
223223
{%- endblock %}
224224

225+
{%- block analytics%}
225226
<script type="text/javascript">
226-
227-
var _gaq = _gaq || [];
228-
_gaq.push(['_setAccount', 'UA-7301842-8']);
229-
_gaq.push(['_setDomainName', 'mongodb.org']);
230-
_gaq.push(['_trackPageview']);
231-
232-
(function() {
233-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
234-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
235-
var s = document.getElementsByTagName('script')[0];
236-
s.parentNode.insertBefore(ga, s);
237-
})();
238-
227+
var _gaq = _gaq || [];
228+
_gaq.push(['_setAccount', 'UA-7301842-8']);
229+
_gaq.push(['_setDomainName', 'mongodb.org']);
230+
_gaq.push(['_trackPageview']);
231+
(function() {
232+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
233+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
234+
var s = document.getElementsByTagName('script')[0];
235+
s.parentNode.insertBefore(ga, s);
236+
})();
239237
</script>
238+
{%- endblock %}
240239

241-
242-
<script type="text/javascript">
243-
document.write(unescape("%3Cscript src='" + document.location.protocol + "//munchkin.marketo.net/munchkin.js' type='text/javascript'%3E%3C/script%3E"));
244-
</script>
245-
<script>try { mktoMunchkin("017-HGS-593"); } catch(e) {}</script>
240+
{%- block marketo %}
241+
<script type="text/javascript">
242+
document.write(unescape("%3Cscript src='" + document.location.protocol + "//munchkin.marketo.net/munchkin.js' type='text/javascript'%3E%3C/script%3E"));
243+
</script>
244+
<script>try { mktoMunchkin("017-HGS-593"); } catch(e) {}</script>
245+
{%- endblock %}
246246
</body>
247247
</html>

0 commit comments

Comments
 (0)