Skip to content

Commit

Permalink
Merge pull request #27 from plausible/develop
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
mehul0810 authored Apr 20, 2021
2 parents 845c2f1 + cdbedbf commit b4c1e6a
Show file tree
Hide file tree
Showing 9 changed files with 235 additions and 59 deletions.
46 changes: 30 additions & 16 deletions assets/src/css/admin/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@
@extend .plausible-analytics-hidden;
}

.plausible-analytics-statistics-not-loaded {
margin: 20px 0 0 -10px;
padding: 0 30px;
font-size: 15px;
line-height: 24px;
}

.plausible-analytics-header {
display: flex;
align-items: center;
background-color: #fff;
padding: 0;
padding: 0;
position: relative;
margin: 0 0 0 -20px;

.plausible-analytics-logo {
Expand Down Expand Up @@ -49,26 +56,27 @@
margin-bottom: 20px;
padding: 15px;

.plausible-analytics-admin-field-header {
display: flex;
justify-content: space-between;
align-items: center;
label {
font-weight: 700;

label {
font-weight: 700;
.plausible-analytics-admin-field-input {
font-weight: 400;
font-size: 14px;

.plausible-analytics-admin-field-input {
font-weight: 400;
font-size: 14px;

input[type='text'] {
background-color: #f5f5f5;
border: none;
border-radius: 5px;
}
input[type='text'] {
background-color: #f5f5f5;
border: none;
border-radius: 5px;
}
}
}

.plausible-analytics-admin-field-header {
display: flex;
justify-content: space-between;
align-items: center;
}

.plausible-analytics-description {
font-style: italic;
color: #989898;
Expand All @@ -80,5 +88,11 @@
margin: 5px 15px;
}
}

.plausible-analytics-admin-field-content {
border-top: 1px dashed #e5e5e5;
margin-top: 15px;
padding: 15px 0 0 0;
}
}
}
6 changes: 6 additions & 0 deletions assets/src/js/admin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ document.addEventListener( 'DOMContentLoaded', () => {
const isSelfHostedAnalytics = null !== selfHostedAnalyticsElement ? selfHostedAnalyticsElement.checked : false;
const trackAdminElement = formElement.querySelector( 'input[name="plausible_analytics_settings[track_administrator]"]:checked' );
const isTrackAdmin = null !== trackAdminElement ? parseInt( trackAdminElement.value ) : 0;
const embedAnalyticsElement = formElement.querySelector( 'input[name="plausible_analytics_settings[embed_analytics]"]:checked' );
const canEmbedAnalytics = null !== embedAnalyticsElement ? parseInt( embedAnalyticsElement.value ) : 0;
const roadBlock = null !== formElement.querySelector( '.plausible-analytics-admin-settings-roadblock' ) ? document.querySelector( '.plausible-analytics-admin-settings-roadblock' ).value : '';
const sharedLinkElement = formElement.querySelector( 'input[name="plausible_analytics_settings[shared_link]"]' );
const sharedLink = null !== sharedLinkElement ? sharedLinkElement.value : 0;

spinner.style.display = 'block';
saveSettings.setAttribute( 'disabled', 'disabled' );
Expand All @@ -51,6 +55,8 @@ document.addEventListener( 'DOMContentLoaded', () => {
formData.append( 'custom_domain_prefix', customDomainPrefix );
formData.append( 'is_self_hosted_analytics', isSelfHostedAnalytics === true );
formData.append( 'self_hosted_domain', selfHostedDomain );
formData.append( 'embed_analytics', canEmbedAnalytics === 1 );
formData.append( 'shared_link', sharedLink );
formData.append( 'track_administrator', isTrackAdmin === 1 );

fetch(
Expand Down
2 changes: 1 addition & 1 deletion config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// Define plugin version in SemVer format.
if ( ! defined( 'PLAUSIBLE_ANALYTICS_VERSION' ) ) {
define( 'PLAUSIBLE_ANALYTICS_VERSION', '1.1.0' );
define( 'PLAUSIBLE_ANALYTICS_VERSION', '1.2.0' );
}

// Define plugin root File.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plausible-analytics",
"version": "1.1.0",
"version": "1.2.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion plausible-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Simple and privacy-friendly alternative to Google Analytics.
* Author: PlausibleHQ
* Author URI: https://plausible.io
* Version: 1.1.0
* Version: 1.2.0
* Text Domain: plausible-analytics
* Domain Path: /languages
*
Expand Down
101 changes: 80 additions & 21 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,73 @@ Contributors: plausible, mehul0810
Donate link: https://plausible.io/
Tags: analytics, google analytics, web analytics, stats, privacy, privacy friendly
Requires at least: 4.8
Tested up to: 5.6
Tested up to: 5.7
Requires PHP: 5.6
Stable tag: 1.1.0
Stable tag: 1.2.0
License: Massachusetts Institute of Technology (MIT) license
License URI: https://opensource.org/licenses/MIT

Plausible Analytics is a simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Plausible Analytics is a simple, open-source, lightweight and privacy-friendly web analytics alternative to Google Analytics.

== Description ==

Plausible Analytics is a simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Plausible Analytics is a simple, open-source, lightweight and privacy-friendly web analytics alternative to Google Analytics.

Plausible Analytics doesn’t use cookies and is fully compliant with GDPR, CCPA and PECR. Made and hosted in the EU 🇪🇺.

Take a look at [the live demo](https://plausible.io/plausible.io).

**You need a subscription to Plausible Analytics to track your stats. There's a free 30-day trial with unlimited usage and no credit card required.**

In this version, you can only view your stats by visiting your dashboard on our website. You cannot view your stats within your WordPress dashboard.
We choose the subscription business model rather than surveillance capitalism. We're operating a sustainable project funded solely by the fees that our subscribers pay us. And we donate 5% of our revenue.

[Visit our website](https://plausible.io/) for full details.

## Why use Plausible?

Plausible is built for privacy-conscious website owners. Here’s what makes it a great Google Analytics alternative:
Plausible Analytics is built for privacy-conscious site owners. You get valuable and actionable stats to help you improve your efforts while your visitors keep having a nice and enjoyable experience.

### Check website traffic and site analytics in 1 minute
Here's what makes Plausible a great Google Analytics alternative and why we're trusted by 2,000+ subscribers to deliver their website and business insights:

Plausible is simple and it cuts through the noise. No layers of menus, no need for custom reports. Get all the important insights on one single page. No training necessary.
### Simple analytics at a glance

### Lightweight script which keeps your site speed fast
Plausible is simple analytics. It is easy to understand and it cuts through the noise. Check your site traffic and get all the essential insights on one page in one minute. There are no layers of menus, there is no need for you to build custom reports, custom dashboards or PowerPoint documents.

Plausible script is 45 times smaller than Google Analytics script. Your page weight will be cut down, your site will load faster and you will reduce the carbon footprint for a greener web.
### Lightweight script that keeps your site speed fast

### Doesn't track nor collect any personal data
Plausible is lightweight analytics. Our script is 45 times smaller than Google Analytics. Your page weight will be cut down, your site will load faster and you'll reduce your carbon footprint for a greener and more sustainable web. A site with 10,000 monthly visitors can save 4.5 kg of CO2 emissions per year by switching.

Plausible respects the privacy of your visitors. Your traffic data is not used for any other purposes. You fully own and control 100% of your data.
### No need for cookie banners or GDPR consent

### No cookie banners or GDPR/CCPA consent needed
Plausible is privacy-friendly analytics. All the site measurement is carried out absolutely anonymously. Cookies are not used and no personal data is collected. There are no persistent identifiers. No cross-site or cross-device tracking either. Your site data is not used for any other purposes.

Plausible does not use cookies and is fully compliant with GDPR, CCPA, PECR and other privacy regulations out of the box.
### Track events, goal conversions and campaigns

### Define key goals and track conversions
Plausible is useful. Segment the data by any metric you click on. Answer the important questions about your visitors, content and referral sources. Analyze paid campaigns and dark traffic using UTM parameters. Track outbound link clicks and 404 error pages. Create custom events, see how they convert over time and identify trends that matter.

Set custom events or page URLs as your goals and see how they convert over time to understand and identify the trends that matter.
### Open and share your web analytics dashboard

### Get weekly or monthly reports directly into your inbox
Plausible is shareable. Your stats are private by default but you can choose to be transparent and make them public so anyone with your custom link can view them. You can also share your stats privately by generating a secure link. This link is impossible to guess but you can add password protection for extra security.

Keep an eye on your traffic with automated email reports. Email reports can be scheduled to be sent to multiple recipients.
### Transparent and fully open source software

### Open your web analytics to everyone
Plausible is open source analytics. Our source code is available and accessible on GitHub so anyone can read it, inspect it and review it to verify that our actions match with our words. We welcome feedback and have a public roadmap. If you're happy to manage your own infrastructure, you can self-host Plausible too.

Your stats are private by default but you can choose to be transparent and make them public so anyone with your custom link can view them.
## Features

* Our product is updated several times per week and with this plugin you always have access to all the latest features
* Automatically includes tracking code in the header of your site
* Simple plugin settings page with easy options
* Disables tracking of admin-level users by default
* Tracks external link clicks and 404 error pages by default
* Serve the script as a first-party connection from your domain name
* Integrate with Google Search Console so you can see search queries people use to find your site in Google's search results
* Keep an eye on your traffic with weekly and/or monthly reports email and Slack reports
* Get traffic spike notifications via email or Slack so you don't miss being on the Hacker News
* Tag your paid ads, emails and social media posts with UTM tags and analyze your ecommerce and marketing campaigns from click to conversion
* Filter the dashboard by any metric that you click on to get further insights. Mix and match filters too

For more information: [How to setup Plausible Analytics WordPress plugin](https://plausible.io/wordpress-analytics-plugin).

== Installation ==

Expand All @@ -77,11 +91,52 @@ The manual installation method involves downloading our plugin and uploading it

== Frequently Asked Questions ==

For more information, visit the [Plausible Analytics website](https://plausible.io/). And for answers to all the frequently asked questions, [check out our documentation](https://plausible.io/docs).

= Why should I stop using Google Analytics on my website? =

We may be biased but we don’t recommend you use Google Analytics on your WordPress site because of these reasons:

It’s owned by Google, the largest ad-tech company in the world
It’s a bloated script that affects your site speed
It’s overkill for the majority of site owners
It’s a liability considering GDPR, CCPA and other privacy regulations
It uses cookies so you must obtain consent to store cookies
It’s blocked by many plugins and browsers so the data is not very accurate
It requires an extensive privacy policy
It’s abused by referral spam that skews the data
It’s a proprietary product so you need to put your trust in Google
It worsens the user experience due to the necessity for the annoying prompts

Read more: https://plausible.io/blog/best-wordpress-analytics-plugins

= Why is Plausible not free like Google Analytics? =

Google Analytics is free because Google has built their company and their wealth by collecting and analyzing huge amounts of personal information from web users and using these personal and behavioral insights to sell advertisements.

With Plausible, you 100% own and control all of your website data. This data is not being shared with or sold to any third-parties. Since we don't make money from targeted advertisement, we must ask for a small fee to keep the servers running.
With Plausible, you 100% own and control all of your website data. This data is not being shared with or sold to any third-parties. Since we don't make money from targeted advertisement, we must charge a subscription fee.

Revenue from subscriptions is used to pay our rent, further develop Plausible and allow us to commit to Plausible and open source full time. It also enables us to give back 5% of our gross revenue to the environmental causes and open source projects that we rely on.

= Is there a demo available? =

Yes, you can check out our demo at https://plausible.io/plausible.io

= How can I contribute to Plausible? =

Check out our GitHub repository where all the development of Plausible Analytics and of our WordPress plugin are done in the open.

Main repo: https://github.com/plausible/analytics
Plugin repo: https://github.com/plausible/wordpress

You can also blog and in other ways share with the world what you like about Plausible, what you use it for and how it helps you solve your challenges. Our growth can be attributed to people who love to use Plausible and who decide to share their Plausible experience with the world.

You can also contribute to Plausible by translating our plugin. Take a look at https://translate.wordpress.org

= How can I contact you? =

You can read more about us: https://plausible.io/about
Contact us: https://plausible.io/contact

== Screenshots ==

Expand All @@ -94,6 +149,10 @@ Please make sure you make a backup of your database before updating any version

== Changelog ==

= 1.2.0 =
- Stats within WP dashboard [#17](https://github.com/plausible/wordpress/issues/17)
- Allows middle-click and ctrl+click outbound clicks to properly open as user intended? [#15](https://github.com/plausible/wordpress/issues/15)

= 1.1.0 =
- add support for self-hosted plausible analytics script [#2](https://github.com/plausible/wordpress/issues/2)
- add support for custom events tracking [#3](https://github.com/plausible/wordpress/issues/3)
Expand Down
Loading

0 comments on commit b4c1e6a

Please sign in to comment.