diff options
| author | Julian Thilo <[email protected]> | 2014-04-04 10:28:45 +0200 |
|---|---|---|
| committer | Julian Thilo <[email protected]> | 2014-04-04 10:28:45 +0200 |
| commit | fa9e541f5e9aa9ce5ea039166826c5f195585daa (patch) | |
| tree | bc6ee4d2e44d0d102f93d0819beebf9bad7e02c1 /docs/_includes | |
| parent | 5ef634dab9bb39b9dc5beb10a568a05952a519ff (diff) | |
| download | bootstrap-fa9e541f5e9aa9ce5ea039166826c5f195585daa.tar.xz bootstrap-fa9e541f5e9aa9ce5ea039166826c5f195585daa.zip | |
Re-implement Universal Analytics
X-Refs:
https://github.com/twbs/bootstrap/commit/b2a67ffe55f5fedb0ae1d5dff331687c3e744be0
https://github.com/twbs/bootstrap/commit/c97e6d5cad74d20257d28734f85311ef5d00b560
Diffstat (limited to 'docs/_includes')
| -rw-r--r-- | docs/_includes/getting-started/download.html | 6 | ||||
| -rw-r--r-- | docs/_includes/header.html | 16 | ||||
| -rw-r--r-- | docs/_includes/nav/main.html | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/docs/_includes/getting-started/download.html b/docs/_includes/getting-started/download.html index e3adffd8b..c89c8b9e4 100644 --- a/docs/_includes/getting-started/download.html +++ b/docs/_includes/getting-started/download.html @@ -8,21 +8,21 @@ <h3 id="download-bootstrap">Bootstrap</h3> <p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p> <p> - <a href="{{ site.download.dist }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a> + <a href="{{ site.download.dist }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download compiled');">Download Bootstrap</a> </p> </div> <div class="col-sm-4"> <h3 id="download-source">Source code</h3> <p>Source Less, JavaScript, and font files, along with our docs. <strong>Requires a Less compiler and <a href="{{ site.repo }}#compiling-css-and-javascript">some setup.</a></strong></p> <p> - <a href="{{ site.download.source }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download source</a> + <a href="{{ site.download.source }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a> </p> </div> <div class="col-sm-4"> <h3 id="download-sass">Sass</h3> <p><a href="{{ site.sass_repo }}">Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p> <p> - <a href="{{ site.download.sass }}" class="btn btn-lg btn-outline" role="button" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download Sass']);">Download Sass</a> + <a href="{{ site.download.sass }}" class="btn btn-lg btn-outline" role="button" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Sass');">Download Sass</a> </p> </div> </div> diff --git a/docs/_includes/header.html b/docs/_includes/header.html index f11ed4baa..37f7a7597 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -31,12 +31,12 @@ <link rel="icon" href="../assets/ico/favicon.ico"> <script> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-146052-10']); - _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-146052-10', 'getbootstrap.com'); + ga('send', 'pageview'); + </script> diff --git a/docs/_includes/nav/main.html b/docs/_includes/nav/main.html index 9f449f258..6f773d2c1 100644 --- a/docs/_includes/nav/main.html +++ b/docs/_includes/nav/main.html @@ -28,8 +28,8 @@ </li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ site.expo }}" onclick="_gaq.push(['_trackEvent', 'Navbar', 'Community links', 'Expo']);">Expo</a></li> - <li><a href="{{ site.blog }}" onclick="_gaq.push(['_trackEvent', 'Navbar', 'Community links', 'Blog']);">Blog</a></li> + <li><a href="{{ site.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');">Expo</a></li> + <li><a href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');">Blog</a></li> </ul> </nav> </div> |
