瀏覽代碼

website: Use plausible instead of google analytics (#3567)

* Use plausible instead of google analytics

* remove Saucelabs badge, correct copy about browser support
Artur Paikin 3 年之前
父節點
當前提交
ebeb314a29

+ 1 - 5
README.md

@@ -151,11 +151,7 @@ The ⓒ mark means that [`@uppy/companion`](https://uppy.io/docs/companion), a s
 
 ## Browser Support
 
-<a href="https://saucelabs.com/u/transloadit-uppy">
-  <img src="https://saucelabs.com/browser-matrix/transloadit-uppy.svg" alt="Sauce Test Status"/>
-</a>
-
-We aim to support recent versions of Safari, Edge, Chrome, Firefox and Opera.
+We aim to support recent versions of Chrome, Firefox, Safari and Edge.
 
 We still provide a bundle which should work on IE11, but we are not running tests on it.
 

+ 0 - 1
website/_config.yml

@@ -3,7 +3,6 @@
 ## Source: https://github.com/tommy351/hexo/
 
 # Theme
-google_analytics: UA-63083-12
 root_domain: uppy.io
 
 # Site

+ 2 - 4
website/src/docs/index.md

@@ -147,11 +147,9 @@ You can also use a pre-built bundle from Transloadit’s CDN: Edgly. `Uppy` will
 
 ## Browser Support
 
-<a href="https://saucelabs.com/u/transloadit-uppy">
-  <img src="https://saucelabs.com/browser-matrix/transloadit-uppy.svg" alt="Sauce Test Status"/>
-</a>
+We aim to support recent versions of Chrome, Firefox, Safari and Edge.
 
-We aim to support recent versions of Safari, Chrome, Firefox, and Opera.
+We still provide a bundle which should work on IE11, but we are not running tests on it.
 
 ### Polyfills
 

+ 1 - 1
website/themes/uppy/layout/layout.ejs

@@ -90,7 +90,7 @@ if (page.series) {
         <% } %>
       </main>
 
-      <%- partial('partials/ga') %>
+      <%- partial('partials/analytics) %>
 
       <% if (!isIndex) { %>
         <script src="/js/smooth-scroll.min.js"></script>

+ 1 - 0
website/themes/uppy/layout/partials/analytics.ejs

@@ -0,0 +1 @@
+<script defer data-domain="<%- config.root_domain %>" src="https://analytics.transloadit.com/js/plausible.js"></script>

+ 0 - 10
website/themes/uppy/layout/partials/ga.ejs

@@ -1,10 +0,0 @@
-<script>
-  (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', '<%- config.google_analytics %>', '<%- config.root_domain %>');
-  ga('set', 'anonymizeIp', true);
-  ga('send', 'pageview');
-</script>

+ 1 - 7
website/themes/uppy/layout/partials/plugin_list.ejs

@@ -41,10 +41,4 @@
 
 <h2 id="browser-support">Browser Support</h2>
 
-<p>
-  <a href="https://saucelabs.com/u/transloadit-uppy">
-    <img src="https://saucelabs.com/browser-matrix/transloadit-uppy.svg" alt="Sauce Test Status"/>
-  </a>
-</p>
-<p>We currently aim to support IE11+ and recent versions of Safari, Edge, Chrome, Firefox and Opera.</p>
-<p>We still run end to end tests with IE10, but we are not actively supporting it or fixing visual / minor issues.</p>
+<p>We aim to support recent versions of Chrome, Firefox, Safari and Edge. We still provide a bundle which should work on IE11, but we are not running tests on it.</p>

+ 0 - 7
website/themes/uppy/layout/partials/social.ejs

@@ -9,11 +9,4 @@ allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"><
      <a href="https://github.com/transloadit/uppy/actions"><img src="https://github.com/transloadit/uppy/workflows/End-to-end%20tests/badge.svg" alt="Build Status"></a>
    </span>
   </li>
-  <li class="SauceBadge">
-   <span class="wrapper">
-     <a href="https://saucelabs.com/u/transloadit-uppy">
-       <img src="https://saucelabs.com/buildstatus/transloadit-uppy" alt="Sauce Test Status"/>
-     </a>
-   </span>
-  </li>
 </ul>