Skip to content

Commit 25944e4

Browse files
author
Ed Costello
committed
DOCS-495 minor formatting cleanup/generate pull
1 parent 76566ef commit 25944e4

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

themes/mongodb/layout.html

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -290,24 +290,22 @@
290290

291291
{%- block analytics %}
292292
<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+
})();
311309
</script>
312310
{%- endblock %}
313311
{%- block marketo %}

0 commit comments

Comments
 (0)