Commit Graph

778 Commits (dc8d20496cf66de2abcdfa50877aaa5b6d68fc86)

Author SHA1 Message Date
Uku Taht 7e78157c4b
Merge branch 'master' into stats-module 5 years ago
Uku Taht 6758931431 Add plug for source favicons 5 years ago
Uku Taht 39f5bc6afb Make sure Direct / None is not showed in small reports 5 years ago
Uku Taht 7d1b1214e2 Implement dashboard with new stats module 5 years ago
Uku Taht 369f63bc58 Adds an option to rename the script file 5 years ago
Uku Taht 0de89bad82
Add filter groups (#1167)
* Add filter groups

* New flow for filters

* Visual consistency

* Mobile improvements to dropdown

* Do not let filters wrap on a new line

* Fix country filter

* Add mix format to pre-commit configuration

* Make eslint happy

* Fix formatting

* Use transition from headlessUI
5 years ago
Uku Taht fef5337a64 Make sure only the current subcription is used in expiry notifications 5 years ago
Uku Taht 70c6010538 Check lock status after subscription has been updated 5 years ago
Thomas Hutterer 145a3599c1
Turn off form autocompletion for new shared links (#1175)
* Turn off form autocompletion for new shared links

Many browser autofill input fields based on their name, but here it makes no sense to use the user's name (email) or even password for the shared link.

* Update changelog
5 years ago
Uku Taht 3a85f7001e Use proxy script 5 years ago
Uku Taht adf9c1acfb Add access-control-allow-origin to script HTTP response 5 years ago
Uku Taht b7dcbb5e54 format 5 years ago
Uku Taht d5e79a2083 fix assign 5 years ago
Uku Taht cfc81bc785 mix format 5 years ago
Uku Taht 388fc39d5e Fix error with multiple invitations
The /activate page would error out when the user had more than 1
invitation. Will work as expected now. Fixes #1147
5 years ago
Vignesh Joglekar 30ac901141
Adds manual, editable, auto-suggested filters, and negated&globbed path-based filters (#1121)
* Adds manual-filters + friends

commit 308192044d726e9a6f7406e333048ab3407aa260
Merge: 39287ab a299fab
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri Jun 11 03:40:55 2021 -0500

    Merge branch 'manual-filters' into manual-filters-2

commit a299fab1fb
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri Jun 11 02:20:26 2021 -0500

    Changes to split and pattern matched function for time_on_page

commit 10f10c933a
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri Jun 11 01:53:18 2021 -0500

    Fixes a couple of minor UX issues

commit f2e5ce8eb3
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri Jun 11 01:49:10 2021 -0500

    Fixes time on page for globbed and negated page paths

commit bb18af6526
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu Jun 10 05:24:05 2021 -0500

    Close to finalized version of updated version

    Just needs some additional testing + potentially code cleanup

commit d0b7bfe3da
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri May 28 04:21:21 2021 -0500

    Real Dialyzer Fix

commit 296a76af34
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri May 28 03:44:29 2021 -0500

    Dialyzer fix

commit 91f3b44017
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 17:11:24 2021 -0500

    Changelog

commit e041f75745
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 17:09:52 2021 -0500

    Formatting

commit f689642204
Merge: e00929b 4ff25f6
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 17:08:47 2021 -0500

    Merge branch 'master' into manual-filters

commit e00929b1c5
Merge: 83887c4 806975e
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 17:01:48 2021 -0500

    Merge branch 'manual-filters' of github.com:Vigasaurus/plausible-analytics into manual-filters

commit 83887c49cc
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 16:59:32 2021 -0500

    Adds tests for suggestions, formats goals suggestion query

commit 1cb7732a08
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 16:36:31 2021 -0500

    Adds goals as auto-complete capable filter

commit 4ca39cc406
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 16:08:22 2021 -0500

    95% completed auto-complete setup

    Still needs:
    - tests
    - goals added as filter

commit 22d38c4cd8
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Thu May 27 03:47:19 2021 -0500

    80% of auto-complete filters progress

    Still needs
    - countries and screen into new format
    - re-style dropdown and background
    - drop debounce time
    - tests

commit 806975ede9
Merge: 81c5e05 1a93542
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Tue May 25 15:28:21 2021 -0500

    Merge branch 'master' into manual-filters

commit 81c5e05760
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Tue May 25 15:21:03 2021 -0500

    Makes colorings on top bar elements consistent

commit fa7f6c2268
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Tue May 25 14:58:25 2021 -0500

    Makes requested changes, adds different version of filter button

commit 7dc65b9b7a
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Sat May 22 04:29:01 2021 -0500

    Changelog

commit c684f1c76a
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Sat May 22 04:26:14 2021 -0500

    Various UI Improvements

    - Makes edit buttons full-length & properly sized
    - Adds remove filter button in edit menu

commit a632e7a8ee
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Sat May 22 03:11:50 2021 -0500

    Adds tests for exclusions and wildcards

commit eb91a7942b
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Sat May 22 03:02:23 2021 -0500

    Fixes editing UX on list view

commit 6209d72aee
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri May 21 04:01:17 2021 -0500

    Bugfix in realtime view, formatting

commit 007d44df38
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri May 21 03:23:16 2021 -0500

    Second pass - mostly everything user-facing is done

    Still needs:
    - Tests
    - Potentially negating other filters
    - Potentially some code cleanup

commit cb7b5b9fbd
Author: Vignesh Joglekar <rexvigasaurus@gmail.com>
Date:   Fri May 21 01:49:52 2021 -0500

    First pass on manual filter & path regex/negated filters

    Still needs:
    - Form structure on filter modal
    - Edit filter button
    - Filter dropdown UI improvement
    - Filter modal mount data collection
    - Tests
    - Potentially negating other filters

* Fixes an issue between the updated React version and Flatpickr not showing up

Reverting to v16 was the simplest fix without diving into the issue upstream with Flatpickr

* Resolves comments on UI and code style

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
5 years ago
Uku Taht 883841f789 Make sure the latest subscription is always used 5 years ago
Uku Taht 7c9ca12a3e Don't use URL in compat mode 5 years ago
Uku Taht de158d22e4 Remove Signup tracking from invitation form 5 years ago
Uku Taht 1f4f054e24 Copy changes for self-hosted 5 years ago
Uku Taht f4813f02fd Add link to the troubleshooting guide 5 years ago
Uku Taht a378935aac Add IE11 compatibility mode 5 years ago
Uku Taht 5c886cc004 Remove custom domain link if site does not have a custom domain 5 years ago
Uku Taht cf6583ce1e Clarify copy in invitation_expired.html 5 years ago
Uku Taht 0c22b833f8 Add note about ownership transfer request expiring 5 years ago
Uku Taht 27f99da8ad Do not send email reports for locked sites 5 years ago
Uku Taht 18ddf9dd9d Admin access 6 years ago
Uku Taht 62dfb43f10 Admin access 6 years ago
Uku Taht e71de6dc1f
Invitations (#1122)
* Invite existing user to a site

* Add invitation flow for non-existing users

* Accept and reject invitations

* Use invitation flow for existing users

* Locking mechanism for sites

* Authorization for site settings

* Show usage based on site ownership

* Add ability to remove members from a site

* Do not show settings link to viewer roles

* Ability to remove invitations

* Remove `Plausible.Sites.count_for/1`

* Fix tests

* Do not show the trial banner after the trial

* Correct trial emails

* Transfer ownership

* Send invitation email to existing user

* Add invitation email flows

* Add plug for role-based authorization

* Rename AuthorizeStatsPlug -> AuthorizeSiteAccess

* Add email flow for ownership transfer

* Fix URLs in emails

* Fix small copy issues

* Make 'People' its own section in site settings

* Notify user via email if their access has been removed

* Check site lock status when invitation is accepted

* Check lock status when user subscribes

* Make sure only admins and owners can create shared links

* Changelog

* Add LockSites to daily cron

* Clean invitations after 48 hours

* Add notices about expiry

* Add invitation expired page

* Add doc link
6 years ago
Uku Taht 3fe8bd6681
Pr/1117 formatted (#1129)
* runtime.exs: get var from file

* Format pr/1117

Co-authored-by: happysalada <raphael@megzari.com>
6 years ago
Uku Taht 39287ab176 Remove IO.inspect 6 years ago
Uku Taht 0054c9fc96 Add api keys to CRM 6 years ago
divinerites 0a3623b07f
Replace "async defer" by "defer" in sniplet for dashboard (#1107) 6 years ago
Uku Taht d9cc21fc06 Add site limit exempt config 6 years ago
Uku Taht c0083815d4 Fix IP address parsing for ipv6 with port number 6 years ago
Uku Taht fa60ebd6b0 Scrub port from x-forwarded-for 6 years ago
Uku Taht ad6faece87
Stats API: Support IN filter expression (#1090)
* Support IN filter expression

* Update clickhouse_ecto
6 years ago
Uku Taht 9f16603bfb Accept application/json in /api/event 6 years ago
Uku Taht c37a2de627 Revert "Adds manual filters on FE, capability for exclusion filters (and the globbing we're used to) for path-based filters (#1067)"
This reverts commit b6eeb40472.
6 years ago
Uku Taht d03b31450f Removes cache-control header from tracker file 6 years ago
Uku Taht 28a931ce76 Fix referrer filter 6 years ago
Vignesh Joglekar b6eeb40472
Adds manual filters on FE, capability for exclusion filters (and the globbing we're used to) for path-based filters (#1067)
* First pass on manual filter & path regex/negated filters

Still needs:
- Form structure on filter modal
- Edit filter button
- Filter dropdown UI improvement
- Filter modal mount data collection
- Tests
- Potentially negating other filters

* Second pass - mostly everything user-facing is done

Still needs:
- Tests
- Potentially negating other filters
- Potentially some code cleanup

* Bugfix in realtime view, formatting

* Fixes editing UX on list view

* Adds tests for exclusions and wildcards

* Various UI Improvements

- Makes edit buttons full-length & properly sized
- Adds remove filter button in edit menu

* Changelog

* Makes requested changes, adds different version of filter button

* Makes colorings on top bar elements consistent
6 years ago
Uku Taht 1a93542cd7 Add rate limit to API requests 6 years ago
Uku Taht 5ca39cf49a Remove unused debuge statement 6 years ago
Andrey Meshkov 90cfed035f
Added parameters for Clickhouse flush interval and max buffer size (#1073)
Currently, both are hard-coded to relatively small values.
This may cause an unnecessary high load on the Clickhouse instance.
It makes sense to make those configurable.
6 years ago
Uku Taht 6228995d4f Rate limit login attempts to 5 per minute 6 years ago
Uku Taht edc77236c7 Some improvements to pagination in dark mode 6 years ago
Uku Taht 2cf0c1a456 Use `forwarded` header when X-Forwarded-For is missing 6 years ago
Uku Taht 5ee3167786 Add special plan 6 years ago
Uku Taht f203eba7c0 Deprecate custom domains 6 years ago
Uku Taht c55450c8d7 Include new testing script 6 years ago
Uku Taht 9d700a059c Include testing script as well 6 years ago
Vignesh Joglekar 5f42141e08
Adds time on page as a top stat when a page filter is active (#1051)
* Adds time on page as a top stat when a page filter is active

* Removes dangling debug statement
6 years ago
Uku Taht e80fc7bb8e
Tracker script improvements (#1048)
* Use `document.currentScript` to get script host

* Add data-api
6 years ago
Vignesh Joglekar 41e4690116
Adds Time on Page metric to Top Pages report (#1007)
* First pass

Needs more testing & potentially cleanup

* Fixes tests, error handling

* Formatting

* Removes broken test

* Fixes inconsistent test

This was due to Clickhouse setup not inserting the sessions with the exact same timestamp consistently and making the test inconsistent

* Combines `include` param, asyncs time_on_page and bounce_rate

* Fixes CH error when no pageviews exist in period

* Format

* Changelog

* Increases await timeout to accomodate larger data sets

* Improves handling of timeout behavior

* Fixes session-based filtering on time on page queries

* Formatting

* Removes old forced entry page modal from top pages report
6 years ago
Vignesh Joglekar 7f3e55418b
Changes from static tracker script name assignments to dynamic (#786)
Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Zero King e37b39583c
Add :ok return to CleanEmailVerificationCodes (#1018) 6 years ago
Uku Taht b2bbe06c90 Show net prices 6 years ago
Uku Taht d10d8fb7dd Adjust new pricing date 6 years ago
Uku Taht f16666e374 Localize billing screens 6 years ago
Uku Taht 547e888242 Localize change plan page 6 years ago
Uku Taht 88efccef2f Localize the /upgrade page 6 years ago
Uku Taht f8e6a32fd8 Add VAT notice to upgrade page 6 years ago
Uku Taht 0e481efafe Use today as change of date 6 years ago
Uku Taht 7c520e16d2 Make discount notices more generic 6 years ago
Uku Taht 1b91909021 Grandfather old plans 6 years ago
Uku Taht 4935a62b22 Use JSON 6 years ago
Uku Taht d1ef27ec9c Make sure upgrading to unlisted plans works OK 6 years ago
Uku Taht 885b1d271a Refactor current plan data format to make changing it easier 6 years ago
Uku Taht 09df65d5ec Improve password policy 6 years ago
Uku Taht 0fb8f09b41 Fix usage checking job 6 years ago
Uku Taht e511c9663e
Pagination for sites listing (#994)
* Add simple pagination to sites index page

* Add changelog entry
6 years ago
Uku Taht 503916980e Remove no_limit_ids 6 years ago
Uku Taht 6492b61fa5 Add test for grandfathering 6 years ago
Uku Taht c3b24342c6 Allow exemption list to be provided in config 6 years ago
Uku Taht 7f9057818d Protect the API endpoint from creating too many sites 6 years ago
Uku Taht 119b9514b2 Add limit of 20 sites 6 years ago
Uku Taht 5efa15f381 Use CF-Connecting-IP when present for remote IP address 6 years ago
Uku Taht 0799138622 Add nil check to hashing 6 years ago
Uku Taht d30f6def0f Add presence check when unsubscribing from email reports 6 years ago
Uku Taht cc2a34758c Remove embed support from password-protected shared links 6 years ago
Uku Taht 9d22ff9f94 Add dark styles for settings_visibility
Fixes #945
6 years ago
Uku Taht 07653079e8 Don't fail oban job when provision_ssl_certificates fails 6 years ago
Uku Taht 718aff1bdf Remove x-frame-options from shared link auth request 6 years ago
Uku Taht 6319e7f29d Update email signatures 6 years ago
Uku Taht 5c759dbfed Clean up Ecto changeset code for events 6 years ago
Uku Taht f185d3736e Add hostname to user id hash 6 years ago
Uku Taht 5c77ec3f5d
Support multiple `data-domain` values (#968)
* Support multiple `data-domain` values

* Add changelog entry
6 years ago
Uku Taht eed7990289 Fix join condition 6 years ago
Uku Taht 8d1039b8ce
Upgrades Oban to v2.6.1 (#967)
* Upgrades Oban to v2.6.1

* Use correct clickhouse_ecto
6 years ago
Uku Taht b107717774
Additional metrics for timeseries API call and CSV export (#952)
* Add `metrics` option to timeseries call

* Add more metrics to csv export

* Add changelog entry
6 years ago
Uku Taht 4b321bdd37 Send user name and email correctly 6 years ago
Uku Taht 70b0184a37 Show sentry error page to capture user feedback 6 years ago
Uku Taht 7982c236c1 Better Sentry tracking 6 years ago
Uku Taht fbe6ab9b61 Remove AppSignal 6 years ago
Uku Taht b8baefee3b
Fix weekly report time range (#951)
* Fix weekly report time range

* Update changelog
6 years ago
Uku Taht 75126408f9 New script name 6 years ago
Uku Taht 6ca7425dc9
Send renewal notification for annual subscriptions (#949)
* Add background job to send renewal notification

* Use copy from Marko

* Add expiration email in case the user has cancelled

* Add queue config

* Use correct tag for expiration email
6 years ago
Uku Taht e1bb436846 Show better error message when changing plans fails 6 years ago
Uku Taht ef9ce7dbe2 Mix format 6 years ago
Uku Taht a980a57de5 Use single source of truth for plans 6 years ago
Uku Taht 80c62cfdb2 Fix bad request call 6 years ago
Uku Taht 264b233ca6 Fix shared link creation with password 6 years ago
Uku Taht edffe64a39 Merge branch 'provision-api' 6 years ago
Uku Taht 70f0657327 Update shared link API 6 years ago
Uku Taht 956e92f161 Change default timezone to Etc/UTC 6 years ago
Uku Taht 70cc25e8cd Increase ssh timeout in certbot call 6 years ago
Uku Taht 6ce7ad4e3f Update ssl provisioning script 6 years ago
Uku Taht 80abfa6ef6 Add validations 6 years ago
Uku Taht d473accf40 Add API key scopes 6 years ago
Uku Taht 2fc136777c Add unique index to shared link name 6 years ago
Uku Taht 3ed964b45b Add API endpoints for site and shared link creation 6 years ago
Uku Taht 8ae4d46e5b Remove beta notice from the API keys section 6 years ago
Uku Taht 43efb03081 Remove failing DB restore query 6 years ago
Uku Taht 1d892ec890 Add plans 6 years ago
Uku Taht 48be0e3fda Revert "Add UTM tags to login links from email reports"
This reverts commit 091fc423f9.
6 years ago
Uku Taht 091fc423f9 Add UTM tags to login links from email reports 6 years ago
Uku Taht 83a759c60a
Use db-ip lite database for countries (#906)
* Use DBIP database for countries

* Add fake data for geolocation tests
6 years ago
Uku Taht 58cff47b6f
Add name to shared links (#910)
* Add name to shared links

* Add changelog entry
6 years ago
Uku Taht 968d280304 Fix crash when calculating visit duration with 0 sessions 6 years ago
Uku Taht 61676db4a7 Fix crash when querying bounce rate with 0 sessions 6 years ago
Niklaas Baudet von Gersdorff f0725e2578
fix: truncate username on small screens (#866)
* fix: truncate username on small screens

caveat: adds suffix ' ...' to every (!) username.

* fix: truncate username via CSS

* chore: apply changes to separated layout for header
6 years ago
Tatsuyuki Ishi d39fbc48c2
Disable self-tracking with self hosting (#907)
* Disable self-tracking with self hosting

* Update CHANGELOG.md
6 years ago
Uku Taht c97043e191 Add ability to delete account and start over in activate flow
Fixes #581
6 years ago
Uku Taht ec9134e14f Fall back to placeholder image when favicon request fails
Fixes #798
6 years ago
Uku Taht e12b9fa42c Use GET instead of POST for logout
Fixes #730
6 years ago
Uku Taht 9ceb251491 Add frontend validation to email report recipients
Fixes #583
6 years ago
Uku Taht 0d07476e32 Add goal page: clear page path when configuring custom event goal
Fixes #796
6 years ago
Uku Taht 4cbebe8ac9 Remove old Sentry code 6 years ago
Uku Taht 3b8fad4942 Upgrade sentry to 8.0 6 years ago
Uku Taht fa64a73d6e
Upgrade mailer dependency (#899)
* Upgrade mailer dependency

* Changelog
6 years ago
Uku Taht 1d4ae3d16f Fix tests 6 years ago
Uku Taht e66c0a0aa4 Make tooltip styles more similar 6 years ago
Uku Taht e315d0cf38
Fix shared link download link (#884)
* Fix shared link download link

* Add test and changelog entry

* Format
6 years ago
Uku Taht c6309976f1 Fix upgrades 6 years ago
Uku Taht 01538c9907
WIP: add lazy loading for dashboard (#859)
* WIP: add lazy loading for dashboard

* Improve error handling

* WIP

* Implement lazy loading for most reports

* Add lazy loading to conversions
6 years ago
Uku Taht c4c0bb2095 Various formatting improvements
* Format numbers over 1B
* Show full number when hovering
6 years ago
Uku Taht 2e16cdb15b Use UInt32 6 years ago
Uku Taht fb64345e92 Format numbers larger than 100m 6 years ago
Uku Taht 3eb2f6d7a8
Add support for sampling (#875)
* Add support for sampling

* Use correct mix package

* Add notice about data sampling
6 years ago
Uku Taht 432ad2a606
Stats API improvements (#826)
* Show hourly data for a day

* Fix aggregations with long periods and comaprisons enabled

* Return Direct / None instead of empty string when missing source

* Fix/Align breakdown query with current queries in the UI

* Show correct number of days for 7d and 30d

* Wrap results of aggregate call in `results`

* Allow breakdown by event:name

* Ensure event:name filter works in all contexts

* WIP

* Add support for custom event props
6 years ago
Uku Taht 06177b84e6 Fix billing usage section 6 years ago
Uku Taht 4ea60f8f1c Add upgrade page for specific plan 6 years ago
Uku Taht 3ff97d27ad Revert to native background colour control 6 years ago
Uku Taht 8ab6edd73f Add max width to embed 6 years ago
Uku Taht fef3eba0a4
Embed improvements (#839)
* Smoother resizing of the iframe

* Use bodyBackground with iframe-resizer
6 years ago
Victor Truong c29bcc89b5
Fix typo with "succesfully" (#836) 6 years ago
Uku Taht 57b3b32444 Add frameborder="0" and loading="lazy" to iframe 6 years ago
Uku Taht 844af698ce
Embeddable dashboard (#812)
* Add embedded mode for shared links

* Add test for X-Frame-Options

* Improve embed code generator

* Add changelog entry

Co-authored-by: aymanterra <aymanterra@users.noreply.github.com>
Co-authored-by: Brad Kane <bradkane@users.noreply.github.com>
6 years ago
Uku Taht d31779b07a Remove unsubscribe link from over limit email 6 years ago
Uku Taht 0ceb539a22 Reduce errors sent to Sentry 6 years ago
Vignesh Joglekar 61c3959626
Fixes goal filters for glob goals (#781)
* Fixes goal filters for glob goals

* Format

* Consolidates goal application
6 years ago
Vignesh Joglekar b952053cee
Adds same glob patterns as exclusions for pageview goals (#750)
* First Pass - 90% wrong

* Second pass - basically done

* Swaps N+1 for multiMatchAllIndices & friends

* New version of query with just one regex computation

* Slight formatting, basic test

* Updates tests to match master new events

* Changelog

* Adds more sophisticated glob tests
6 years ago
Uku Taht c7196afa32 Add a filter for exit pages 6 years ago
Uku Taht cda031d453
Bookmarkable shared links (#752)
* Implement shared links with a static URL

* Separate sessio cookie from shared link cookie
6 years ago
Vignesh Joglekar 752236a429
Adds proper dark styles for API key issuance page (#771) 6 years ago
Uku Taht 7fe50c3ef2 Fix check_usage 6 years ago
Bhavin Gandhi 1bad9b0c50
Use auto generated copyright year (#762)
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
6 years ago
Uku Taht 9db24f54d5 Enable over limit notifications 6 years ago
Vignesh Joglekar ff32218bd0
Adds entry and exit pages to Top Pages module (#712)
* Initial Pass

* Adds support for page visits counting by referrer

* Includes goal selection in entry and exit computation

* Adds goal-based entry and exit page stats, formatting, code cleanup

* Changelog

* Format

* Exit rate, visit duration, updated tests

* I keep forgetting to format :/

* Tests, last time

* Fixes double counting, exit rate >100%, relevant tests

* Fixes exit pages on filter and goal states

* Adds entry and exit filters, fixes various bugs

* Fixes discussed issues

* Format

* Fixes impossible case in tests

Originally, there were only 2 pageviews for `test-site.com`,`/` on `2019-01-01`, but that doesn't make sense when there were 3 sessions that exited on the same site/date.

* Format

* Removes boolean function parameter in favor of separate function

* Adds support for queries that use `page` filter as `entry-page`

* Format

* Makes  loader/title interaction in sources report consistent
6 years ago
opdroad 98afadcb6d
Fix invisible text in dark mode (#759)
* Fix invisible text in dark mode

* Fix invisible text in dark mode

Co-authored-by: Joris <desktop@joris.biz>
6 years ago
Uku Taht 8a455dd191
Prevent user id collisions in session tracking (#744) 6 years ago
Uku Taht 65ac83f2ff Add notice about whether a subscription is yearly 6 years ago
Uku Taht 54b6acf6b0 Fix formatting of over limit email 6 years ago
Uku Taht 3c4931598b Fix breakdown call 6 years ago
Uku Taht a29ac44434
Api improvements (#723)
* Require date parameter with custom period

* Validate format of the `date` param with custom period

* Return proper status codes for auth failures

* Add breakdown endpoint

* Fix pagination

* Add API validations for breakdown call

* Change the breakdown endpoint to return an object instead of an array

* Remove change to aggregate call

* Change timeseries call
6 years ago
Uku Taht 2bab36a438 Add usage checking to cron 6 years ago
Uku Taht 9eff6b03ed Send test billing upgrade notifications 6 years ago
Uku Taht 76d8dc588c Get paddle last payment from api call 6 years ago
Uku Taht a8cb187e8d
Track billing cycles (#697)
* Add dummy check usage worker

* Add and persist last_bill_date

* Remove name clash

* Correct timing and suggestions for over limit emails

* Fix tests for trial upgrade notifications
6 years ago
Uku Taht 77628d04c9
Validate API query params (#703)
* Add validations for `date`, `period` and `metrics` variables

* Validate interval query parameter
6 years ago
Uku Taht 9453209023 Fix custom date format
Fixes #691
6 years ago
Uku Taht 45370824b1 Make API key management look good on dark mode 6 years ago
John Schmidt ff1710591d
fix github icon color in dark mode (#672) 6 years ago
Uku Taht 5acb5b7039
Stats API (#679)
* WIP

* Add ability to filter by anything

* Add API keys

* Add version to api endpoint

* Fix API test route

* Fix API tests

* Allow 'date' parameter in '6mo' and '12mo'

* Rename session -> visit in API filters

* Filter expressions in the API

* Implement filters in aggregate call

* Add `compare` option to aggregate call

* Add way to manage API keys through the UI

* Authenticate with API key

* Use API key in tests
6 years ago
Uku Taht 8a815f57af Fix settings screen for large subscriptions 6 years ago
Uku Taht bc44879bf8 Cascade site_membership deletion 6 years ago
Jon Uhlmann 8516e2c458
Fix: Re-add hash and outbound-links only options 6 years ago
Theodoor 2bd2adbb74
fix(register): disallow registration when registration is disabled (#640)
* fix(register): disallow registration when registration is disabled

* fix(register): moved disabling of registration logic to router

* Revert "fix(register): moved disabling of registration logic to router"

This reverts commit 9d7222d1
6 years ago
Uku Taht d5a055797b Do not show changelog notification in selfhost mode 6 years ago
Uku Taht a5ac5ddd16 Show changelog notification 6 years ago
Vignesh Joglekar fb7a3fef89
Adds data-exclude support and localStorage.plausible_ignore support (#489)
* Adds data-exclude support and plausible_ignore support

* Splits exclusion into separate script option

* localStorage parsing upgrades

* Additional script type additions

I'm unsure about the formatting decision in tracker.ex - lmk.

* Adds new compiled files

This will certainly have conflicts with my other PRs related to the tracking scripts right now, I'll make one extra PR after both are done to ensure they're consolidated into the compiled scripts.

* Moves localStorage blocker out of special script

* Changelog

* Second thoughts on localStorage exclusion

* Updates `*` to not match `/` or whitespace

* Fix formatting

* Removes zero-length asterisks

* Adds support for double glob, zero-length replacements

* Update to reduce size+allow localStorage exclude

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Uku Taht cb3e401dce Revert "Add Comparison Line and Improved Tooltip to Visitors Graph (#624)"
This reverts commit 979d2526d5.
6 years ago
Uku Taht cfd439fd71 Clarify site creation copy 6 years ago
Sean Hill 53660ad18a
Visual updates to user dropdown and 'My sites' header (#623)
* Change datepicker caret from pink to indigo

* Update CHANGELOG.md

* Update CHANGELOG.md

* Updated filters dropdown caret/chevron to indigo

* Updated “My Sites” header and user name dropdown hover background

* Removed changlog note
6 years ago
Vignesh Joglekar 979d2526d5
Add Comparison Line and Improved Tooltip to Visitors Graph (#624)
* First pass

* Title Section of Tooltip+Formatting

* Cleanup, Formatting, Rest of Tooltip

* Fixes bug in "month" calculate_plot

Bug: where calculate_plot on "month" didn't correctly use the end date in the date range, and instead always used the current time - making requesting past chunks of 6 or 12 month data impossible

* Cleanup + Comments

* Cleanup+Percentage Formatting Changes

* Fixes Realtime Tooltip

* Prevent FE Crash

* Minor format, code cleanup

* Removes erroneous changes

* Github UI is bad at indenting
6 years ago
Uku Taht 5220f98476 Fix custom domain conditional 6 years ago
Vignesh Joglekar d339fea686
Update References (#619) 6 years ago
Uku Taht a4bf74a84c Do not allow duplicate spike notification to be created 6 years ago
Uku Taht e02377509c Add 10m, 20m plan 6 years ago
Todd Resudek 888a54869b
#497 UX improvement - show my sites cog without hover on small screens (#600)
* uses tailwind breakpoint to not apply the opacity:0 to the cog on small screen sizes (<768px wide)

* Adds feature description to changelog

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Uku Taht e7a7deef84
Clarify that custom events are billed separately from events (#607)
* Clarify that custom events are billed separately from events

* Fix for dark mode
6 years ago
Uku Taht 44fdef4669 Add notice about www 6 years ago
Uku Taht e873d790e5
Self hosted improvements (#603)
* Introduce SELFHOST config. Enable cron by default for self hosters

* Fix cron, disable custom domain for selfhost

* Add github links

* Add notice about google search console on self hosted

* Enfore BASE_URL

* Set all selfhost users' trial expiry to 100 years from now

* Fix admin user creation
6 years ago
Uku Taht 563c8d99f4 Fix new configuration 6 years ago
Uku Taht e786af648d
Fix session duration for out-of-order events (#593) 6 years ago
Oliver Kriska 4d4f8ba5c3
Elixir & Docker upgrade (#566)
* Elixir upgrade

 - upgraded Elixir to 1.11.2
 - upgraded Erlang to 23.2.1
 - upgraded Phoenix to 1.5.7
 - Upgraded:
  bamboo_postmark 0.6.0 => 0.7.0 (minor)
  bcrypt_elixir 2.2.0 => 2.3.0
  csv 2.3.1 => 2.4.1
  ecto 3.4.6 => 3.5.5
  ecto_sql 3.4.4 => 3.5.3
  elixir_make 0.6.0 => 0.6.2
  ex_machina 2.4.0 => 2.5.0
  excoveralls 0.12.3 => 0.13.4 (minor)
  file_system 0.2.8 => 0.2.10
  gettext 0.18.0 => 0.18.2
  httpoison 1.6.2 => 1.7.0
  nanoid 2.0.2 => 2.0.5
  phoenix_ecto 4.1.0 => 4.2.1
  phoenix_live_reload 1.2.2 => 1.3.0
  postgrex 0.15.5 => 0.15.7
  sentry 7.2.4 => 7.2.5
  timex 3.6.2 => 3.6.3
  tzdata 1.0.3 => 1.0.5
  yamerl 0.8.0 => 0.8.1

* Elixir & Docker upgrade

upgraded to 1.11.3

* Docker

 - fixed missing python3 package for newer Alpine linux
6 years ago
Uku Taht e5ab45eb09 Fix layout issue on Safari 6 years ago
Uku Taht 564d07ec61 Show interval for free_10k 6 years ago
Uku Taht a5135d34fa Add subscription info to admin panel 6 years ago