Skip to content

Commit 76566ef

Browse files
author
Ed Costello
committed
add code to track in page links
1 parent 3b2788a commit 76566ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

themes/mongodb/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@
291291
{%- block analytics %}
292292
<script type="text/javascript">
293293
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]);
294296
_gaq.push(['_setAccount', 'UA-7301842-8']);
295-
_gaq.push(['_setDomainName', 'mongodb.org']);
297+
_gaq.push(['_setDomainName', 'docs.mongodb.org']);
296298
{#- _gaq.push(['_setAllowLinker', true]); -#}
297299
{%- if (pagename == "meta/401") or (pagename == "meta/403") or (pagename == "meta/404") or (pagename == "meta/410") %}
298300
_gaq.push(['_trackPageview', '/manual/{{pagename}}/?page=' + document.location.pathname + document.location.search + '&from=' + document.referrer]);

0 commit comments

Comments
 (0)