We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485aa42 commit a675748Copy full SHA for a675748
readthedocs/core/static-src/core/js/doc-embed/sphinx.js
@@ -8,6 +8,17 @@ var rtd = require('./rtd-data');
8
9
function init() {
10
11
+ /// Click tracking on flyout
12
+ $(document).on('click', "[data-toggle='rst-current-version']", function() {
13
+ var flyout_state = $("[data-toggle='rst-versions']").hasClass('shift-up') ? 'was_open' : 'was_closed'
14
+ if (_gaq) {
15
+ _gaq.push(
16
+ ['rtfd._setAccount', 'UA-17997319-1'],
17
+ ['rtfd._trackEvent', 'Flyout', 'Click', flyout_state]
18
+ );
19
+ }
20
+ });
21
+
22
/// Read the Docs Sphinx theme code
23
if (!("builder" in rtd) || "builder" in rtd && rtd["builder"] != "mkdocs") {
24
function toggleCurrent (elem) {
0 commit comments