Commit Graph

911 Commits (b2a546ea923b6ca40bd32e71cdad8b84b4e19a16)

Author SHA1 Message Date
Adam Rutkowski b2a546ea92 wip 4 years ago
Adam Rutkowski 23a8c4f14f wip 4 years ago
Adam Rutkowski 9bbffd3b59 wip 4 years ago
Adam Rutkowski d9b7e1ffd3 wip 4 years ago
Adam Rutkowski 12f834d97a wip 4 years ago
Adam Rutkowski 09506cd438 wip 4 years ago
Adam Rutkowski 85f5cbbdae fixup 4 years ago
Adam Rutkowski 265d21efc8 wip 4 years ago
Adam Rutkowski e3b8067628 wip 4 years ago
Adam Rutkowski 752817ca22 Ensure funnels are accessible via shared links (test pending) 4 years ago
Adam Rutkowski 4678c65292 Introduce phoenix live view + deps upgrade 4 years ago
Adam Rutkowski 61d3a3efc2 Stop using hardcoded funnel id 4 years ago
Adam Rutkowski dd8fe3af9c Remove IO.inspect 4 years ago
Adam Rutkowski 0ab38e7d57 Outline basic error handling 4 years ago
Adam Rutkowski 308517c08f Move Funnels to StatsController and use base query 4 years ago
Adam Rutkowski 27f5ea0d30 Put private functions at the bottom 4 years ago
Adam Rutkowski 3d8ee2228d Put front-end funnels behind a flag 4 years ago
Adam Rutkowski 9582ad8f63 Remove inspects 4 years ago
Adam Rutkowski 964718dbe2 Mute warnings 4 years ago
Adam Rutkowski caeb4b5efc Remove snippet 4 years ago
Adam Rutkowski c5caf7c06e !fixup 4 years ago
Adam Rutkowski 9264797265 Minor rework 4 years ago
Adam Rutkowski 7f33a159bc Fixup 4 years ago
Adam Rutkowski 59fb60ccf0 !ifxup 4 years ago
Uku Taht 2268636d8f Add Funnels.list/1 function 4 years ago
Uku Taht 6b3154b59e WIP 4 years ago
Adam Rutkowski bf9d6173a8 Dirty wip 4 years ago
Adam Rutkowski 6657a59266 Absolute dirty wip 4 years ago
Adam Rutkowski ca76a6d871 Fetch funnel data from the endpoint 4 years ago
Adam Rutkowski d0973b51d6 !fixup 4 years ago
Adam Rutkowski e774872794 Mock funnels endpoint 4 years ago
RobertJoonas 6c907cbf42
Fix favicon request URLS (#2976)
Also use the favicon.ex proxy in referrer drilldown
4 years ago
ruslandoga 40e95ffd3d
add LOG_FAILED_LOGIN_ATTEMPTS (#2936)
* add failed login logs

* put failed login attempt logs behind a config option

* add changelog entry

* add config test

* add auth_controller tests

* move tests to separate non-async test module

---------

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
4 years ago
Uku Taht 1a94456586
Wrap user deletion in DB transaction (#2964) 4 years ago
Vini Brasil 10d9e3b083
Revenue tracking: Add currency field to goal creation (#2948)
* Add revenue goal option to goal creation

This commit adds a currency field to the goals form. Goals that have a
currency set are now revenue goals, and are cached with sites to later
be used during ingestion.

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>

* Enable feature flag in tests

---------

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
4 years ago
Uku Taht ca3e2e5121
Add unique constraint to api keys (#2931)
* Add unique constraint to api keys

* Fix test

* Remove `user_id` from api key index
4 years ago
Marko Saric 3482337348
link to the WP plugin and the integration guides (#2927) 4 years ago
Marko Saric 1723d3ca68
Keep the in-app footer consistent with the main site (#2944) 4 years ago
Harry Vangberg 34a6b984c7
Escape domain when creating URL for favicon (#2942)
* Escape domain when constructing favicon URL

A domain may include a slash, and in that case the domain must be
escaped, before it is used as an attribute for the image tag.

* match with 'conn.request_path' instead + test

---------

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
4 years ago
RobertJoonas fa54efbc6d
Support `with_imported=true` in Stats API aggregate (#2919)
* default to source_query.include_imported before true

This fixes a bug where a Stats API aggregate query was trying
to query current period *without imported data* but previous
period *with imported data*.

* remove __internal_visits at a better time

As soon as we have made the db query, we don't need it anymore

* disallow events metric with imported data

* update changelog

* keep default in a better place

* remove unused option

* update test description

Co-authored-by: Vini Brasil <vini@hey.com>

---------

Co-authored-by: Vini Brasil <vini@hey.com>
4 years ago
Vini Brasil f29d07a49e
Add tracking back to upgrade-success page (#2938) 4 years ago
Marko Saric 42f88be12a
Tweaks to the email copy (#2933)
* Removing the spike line

* Update dashboard_locked.html.eex
4 years ago
Uku Taht e954f946e1
Adds `nofollow` to X-Robots-Tag header in stats page (#2929) 4 years ago
Uku Taht eec842c46b
Remove `visits_metric` feature flag (#2898)
* Remove `visits_metric` feature flag

* Fix credo warning
4 years ago
Vini Brasil 257fa16cdc
Simplify Phoenix error template (#2913)
* Simplify Phoenix error template

* Test tracking script is not included in error pages

* Test tracking script is not rendered in error templates

* Rename error layout and remove unnecessary HTML boilerplate

* Add layout setting to errors rendered without exceptions

* Add skip_plausible_tracking option to more pages
4 years ago
RobertJoonas d161c1be0b
Upgrade phoenix (#2902)
* upgrade phoenix

Co-authored-by: Vini Brasil <vini@hey.com>

* fix a test (flash message)

The flash message in focus.html.eex was not covered by any test. This
commit fixes also fixes that.

* change function name

* remove unnecessary formatter and format

* update CI cache

* fix dialyzer error

---------

Co-authored-by: Vini Brasil <vini@hey.com>
4 years ago
hq1 6a831d9898
Harden API input validation (#2869)
* Reject invalid country codes early

* Validate all date parameters early

* Ensure request JSON parses to a map

* Re-arrange function calls

* Extend malicious filter validation
4 years ago
Vini Brasil fecbc8b455
Fix conversions top stats bug when comparing (#2893)
This commit fixes a bug where unique conversions and the unique visitors
of the previous period in comparison view were always the same.

First reported at: https://github.com/plausible/analytics/discussions/532#discussioncomment-5760187
4 years ago
Vini Brasil eb6baa92a3
Show imported icon only when querying imported ranges (#2892)
This commit updates the imported 'G' icon, so that it appears only when
querying or comparing a range with imported data. By hiding the icon in
all other cases, users will see it only when they can actually click on
it.
4 years ago
RobertJoonas 7d935b79bf
Treat page filter as entry page filter only for bounce rate (#2874)
* add entry page filter condition to bounce rate

* Fix select_merge with dynamic

* fix tests and add one test

* generalize page_filter_condition function

* use dynamic_filter_condition for session filters too

* disable views_per_visit with a page filter

* update changelog

* disable credo for complex function

---------

Co-authored-by: Uku Taht <uku.taht@gmail.com>
4 years ago