All Projects → browserslist → Browserslist Ga

browserslist / Browserslist Ga

Licence: mit
🦔 Target browsers tailored to your audience using Google Analytics

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Browserslist Ga

unified-analytics
ready-to-deploy custom web analytics collection & reporting for government
Stars: ✭ 20 (-92.86%)
Mutual labels:  google-analytics
svelte-google-analytics
Google Analytics component for Svelte
Stars: ✭ 41 (-85.36%)
Mutual labels:  google-analytics
event-jekyll-theme
Jekyll Theme package for your event
Stars: ✭ 119 (-57.5%)
Mutual labels:  google-analytics
yii2-google-analytics
Google Analytics Universal tracking widget.
Stars: ✭ 14 (-95%)
Mutual labels:  google-analytics
Stop.Google.Analytics.Ghost.Spam.HOWTO
How to stop Google Analytics "Ghost" Spam using a well curated list of spam referrer domains and web sites. Simple and easy to use with instructions for creating Segments in Google Analytics using our google-exclude files.
Stars: ✭ 21 (-92.5%)
Mutual labels:  google-analytics
ob google-bigquery
This service is meant to simplify running Google Cloud operations, especially BigQuery tasks. This means you do not have to worry about installation, configuration or ongoing maintenance related to an SDK environment. This can be helpful to those who would prefer to not to be responsible for those activities.
Stars: ✭ 43 (-84.64%)
Mutual labels:  google-analytics
dashflare
🕵🏼‍♀️ Open Source and privacy-focused analytics solution. 📊 Advanced monitoring for your website behind Cloudflare
Stars: ✭ 78 (-72.14%)
Mutual labels:  google-analytics
Laravel Analytics
Analytics tracking package for Laravel
Stars: ✭ 261 (-6.79%)
Mutual labels:  google-analytics
galytics3
Обертка над стандартной библиотекой google_api_python_client для легкой работы с API Google Analytics v3
Stars: ✭ 16 (-94.29%)
Mutual labels:  google-analytics
wp-analytify
Google Analytics Dashboard Plugin For WordPress By Analytify
Stars: ✭ 20 (-92.86%)
Mutual labels:  google-analytics
web-analytics-handbook
Handbook - Rendezvous between developers and web data
Stars: ✭ 23 (-91.79%)
Mutual labels:  google-analytics
kirby-ga
Kirby GA - Google Analytics
Stars: ✭ 16 (-94.29%)
Mutual labels:  google-analytics
react-analytics-provider
Super convenient analytics provider for React
Stars: ✭ 47 (-83.21%)
Mutual labels:  google-analytics
benjamincarlson.io
My personal website built with Next.js, Chakra UI, Firebase, and next-mdx-remeote.
Stars: ✭ 102 (-63.57%)
Mutual labels:  google-analytics
googleAnalyticsProphetR
Applying Facebook's prophet on Google Analytics data
Stars: ✭ 30 (-89.29%)
Mutual labels:  google-analytics
search-github-starred
Full-Text Search the readme, description, homepage and URL of your GitHub starred repository. Use GitHub OAuth 2, React, Redux, Golang (server side), Elasticsearch, Redis.
Stars: ✭ 15 (-94.64%)
Mutual labels:  google-analytics
aws-web-analytics
Privacy-focused alternative to Google Analytics on AWS Pinpoint
Stars: ✭ 45 (-83.93%)
Mutual labels:  google-analytics
Laravel Gamp
📊 Laravel Google Analytics Measurement Protocol Package
Stars: ✭ 271 (-3.21%)
Mutual labels:  google-analytics
react-seo-friendly-spa-template
React PWA/SPA template initially scaffolded with CRA (Create React App) and configured for SEO. Makes use of prerendering and other techniques/packages in order to achieve a perfect "Lighthouse Score".
Stars: ✭ 24 (-91.43%)
Mutual labels:  google-analytics
stat-counters
The library, which provides statistics counters, e.g. Google analytics, Yandex metrica, etc
Stars: ✭ 16 (-94.29%)
Mutual labels:  google-analytics
Browserslist-GA logo

Target browsers tailored to your audience.


Interested in a bot that does all of this for you? Click here!


How to use

In the root directory of your project run:

npx browserslist-ga

(npx comes with npm 5.2+, for older versions run npm install -g browserslist-ga and then browserslist-ga)
(to run the latest code directly from GitHub, execute npx github:browserslist/browserslist-ga instead)

You'll be asked to login with your Google Account (please see this issue if you are unable to sign in). Your access token will only be used locally to generate a browserslist-stats.json file in the root of your project. After finishing the steps, you can use your stats with Browserlist by adding the following to your Browserslist config:

> 0.5% in my stats  # Or a different percentage

Note that you can query against your custom usage data while also querying against global or regional data. For example, the query > 1% in my stats, > 5% in US, 10% is permitted.

Why should I care?

Browsers update very often these days, with major releases getting published every month. With each new browser version comes support for new web platform features. Thanks to open source projects such as Autoprefixer and Babel we are able to use these features while supporting older browsers. But this backward compatibility comes with a cost. We can't really keep adding prefixes, polyfills and other fallbacks to support every browser ever invented.

Browserslist is an open source project that can minimize those costs by allowing you to configure which browsers you care about. It is supported by tools such as Autoprefixer, babel-preset-env, postcss-normalize and many others. Here's how you configure Browserslist:

> 1%              # I want to support browser versions that have more than 1% of global usage
Last 2 versions   # And the latest 2 versions of each browser
IE 9              # And also Internet Explorer 9 specifically

The global browser usage data comes from caniuse.com and is downloaded from npm when you run npm install. Package managers such as npm and Yarn will generate a lockfile with the exact version of each package that was installed. This means the caniuse database that is used to perform these queries will always be the same. This is great because it's predictable, but it's important to update this package from time to time to keep up with the latest stats. Apart from remembering to update this package, there's something else you should consider:

  • For instance, in China there are some popular browsers that are not used in the US and Europe.
  • Or maybe your audience uses mostly mobile browsers.
  • Or maybe you are building an application for the government and need to support Internet Explorer 8.

The point being, it's important to make decisions based on your audience. Browserslist-GA aims to help you with that. It integrates Google Analytics with Browserslist to keep your targeted browsers updated.

Notes

There are some differences compared to the caniuse Google Analytics importer:

  • All browsers on iOS use Safari's WebKit as the underlying engine, and hence will be resolved to Safari. The  caniuse Google Analytics parser only converts some of the data to Safari, while the remaining is left untracked (see #1).
  • YaBrowser, a popular browser in russian-speaking countries, uses the Blink web browser engine and is based on Chromium. It is currently not available on caniuse and so is resolved to Chrome (or Chrome for Android) and the version is mapped to the nearest available version (see #2).
  • Just like for YaBrowser, the same approach is applied to the Coc Coc browser.

Kudos

All the praise goes to the humans and martians that develop and maintain Can I Use and Browserslist.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].