Commit Graph

1628 Commits (1519db72c2bb47236be45f4e365a054e6d4ace35)
 

Author SHA1 Message Date
Adam Rutkowski 1519db72c2
Clean up docker entrypoint script (#2217)
The .gitlab directory is no longer relevant.
This moves the entrypoint script to `rel/` directory
and copies from there.
4 years ago
Uku Taht 8d8b66d266
Add boundary to tooltip (#2211) 4 years ago
Adam Rutkowski cc4d4bb8e0
Fixup error reporting (ref #2181) (#2204)
* Fixup error reporting (ref #2181)

Fixes two problems:

 - `extra` sent to Sentry is always expected to be a map
 - no `String.Chars` protocol is implemented for `Finch.Error` struct

* Use explicit paths in http client tests

* Make HTTP Client tests sync
4 years ago
Uku Taht aa7d7a35bd Revert "Add link to UTM builder (#2195)"
This reverts commit 6e7873f834.
4 years ago
Uku Taht 6e7873f834
Add link to UTM builder (#2195)
* Add link to UTM builder

* Changelog entry
4 years ago
Vinicius Brasil d31db86b49
List all Google Analytics views during import (#2184)
* List all Google Analytics views during import

This commit fixes a bug where different Google Analytics views with the
same name and URI were not shown. This was caused because GA views were
stored as a map, that naturally doesn't support duplicate keys.

This change updates the GA views list to display view IDs, making it
clearer to know what is being imported. The dropdown is now grouped by
website URL.

* Put Google Analytics API URLs in app env

* Add controller test to GA view list
4 years ago
Adam Rutkowski cff666e6ba
Update browserlist-db (#2192) 4 years ago
RobertJoonas 39ce850f18
exclude pages by hash when using `script.exclusions.hash.js` (#2172)
* account for hash part of the URL when excluding pages and using hash extension

* changelog update
4 years ago
Adam Rutkowski e2aa519c31
Test HTTPClient (#2185)
* Sort dependencies

* Add :bypass dependency

* Test HTTPClient

* Rename test module
4 years ago
Vinicius Brasil 263a359366
Add missing `application/` to Content-Type match (#2183) 4 years ago
Adam Rutkowski 1a294854e3
Fix improper pattern matching on Finch responses (#2181) 4 years ago
Vinicius Brasil 7c24120ee1
Build Docker images for each PR (#2152)
* Create Action for building PR images

* Make master and stable private images

* Rename docker.yml to build-public-images.yml
4 years ago
Adam Rutkowski 12c2469745
Pin clickhouse image to 21.11.3.6 (#2175) 4 years ago
Adam Rutkowski 9c23e886aa
Merge pull request #2174 from plausible/fix-flaky-test-assuming-order
Do not assume any order in browser data import test
4 years ago
Adam Rutkowski de7a41657b
Merge pull request #2173 from plausible/render-400-when-no-auth-supplied-to-shared-links
Respond with 400 when no auth supplied to shared link request
4 years ago
Adam Rutkowski 79b4550bed Do not assume any order in browser data import test 4 years ago
Adam Rutkowski 2275cd8e22 Respond with 400 when no auth supplied to shared link request 4 years ago
Marko Saric b9ae568bad
Fixing Innenstadt II/III to Frankfurt (#2162) 4 years ago
Vinicius Brasil e417c82a26
Perform calculations in SQL instead of app when creating sites (#2156)
This commit removes some Enum calls to rely on the database for
aggregating data. This improves performance when creating new sites,
especially if the user has multiple sites.
4 years ago
Uku Taht 7683638b84
Embed improvements (#2148)
* Replace current tooltip with Popper.js

* Merge tooltip and title for top stats

* Format bounce rate and visit duration numbers in tooltip

* Add 'width=manual' mode for embed

* Add changelog entry

* Use helper function canMetricBeGraphed
4 years ago
Vinicius Brasil f4a242ac71
Handle unexpected Google Analytics responses (#2158)
This commit handles unexpected Google Analytics responses while
importing, and logs to Sentry and Logger. This will improve
observability when things go wrong with GA imports.
4 years ago
RobertJoonas e8d197f434
updated to most recent referrer blocklist commit (#2146) 4 years ago
Vinicius Brasil bc68235d04
Add fallback for GA reports without rows (#2121) 4 years ago
Uku Taht 00d82fd5b1 Increase user_agents cache size to 10k 4 years ago
Uku Taht f4db53109c Add guard to CRM subscription_plan function 4 years ago
Uku Taht 7bfd7cc219 Fix captcha HTTP request 4 years ago
Uku Taht eb99133791 Fix favicon requests 4 years ago
RobertJoonas 4f4b05335e
link to contact page instead of mailto (#2108) 4 years ago
Vinicius Brasil a10d44a0d7
Refactor event struct creation function (#2098)
* Replace Ingestion.Request headers with user_agent

* Replace generic Ingestion.Request params with specific fields

* Refactor event building function into small functions

* Move Plausible.Ingestion to Plausible.Ingestion.Event

* Add option to override event fields while building

* Rename Ingestion.Request meta to props

* Replace UTM-specific fields with generic query_params

* Remove Map.from_struct/1 call from ingestion pipeline

* Remove stash options from ingestion
4 years ago
Uku Taht ad739f603b Fix compile error 4 years ago
Uku Taht 57c758cff9 Fix favicon HTTP response handling 4 years ago
Vinicius Brasil 4d20c7ce70
Catch Google Search Console grant error (#2101)
* Remove invalid Jason.decode argument

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

* Add custom message to Google invalid grant error

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

* Test invalid_grant while refreshing Google token

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

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
4 years ago
RobertJoonas 8595332717
Merge pull request #2105 from renbaoshuo/update-links-to-docs
Update links to documents
4 years ago
Manu S Ajith 777c69b1d6
Migrate HTTPoison to Finch (#2054)
Signed-off-by: Manu S Ajith <neo@codingarena.in>

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Baoshuo eac4660354
Update links to documents 4 years ago
Uku Taht 5c83ea77de Remove cache reporting to logs 4 years ago
Manu S Ajith c7a9da75b4
Enable Cachex stats (#2100)
Signed-off-by: Manu S Ajith <neo@codingarena.in>

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Manu S Ajith c0c36646e2
Add Custom telemetry for Plausible.Event.WriteBuffer, Plausible.Event.WriteBuffer and Cachex (#2095)
* Add Custom telemetry for Plausible.Event.WriteBuffer, Plausible.Event.WriteBuffer and Cachex

Signed-off-by: Manu S Ajith <neo@codingarena.in>

* Rename telemetry.ex to avoid confusion with Phoenix Telemetry supervisor

Signed-off-by: Manu S Ajith <neo@codingarena.in>

* Remove duplicate event

Signed-off-by: Manu S Ajith <neo@codingarena.in>

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Uku Taht a5757bc61e Allow ownership transfers 4 years ago
Vinicius Brasil 6b8ed12567
Fix Google Search Console API call (#2090)
This commit fixes a bug where fetching Google Search Console keywords
raised a FunctionClauseError. This was introduced in #2046. This commit
also adds test coverage.
4 years ago
ruslandoga ce461b5192 Auth updates 4 years ago
Vinicius Brasil d41fd68e99
Create struct for event requests (#2084)
* Create struct for saving ingestion request

* Create separate function to buffer events
4 years ago
RobertJoonas a058cf6240
added a test and changed hashmode condition (#2082) 4 years ago
Uku Taht 99fd101135
Add basic test harness for browserstack/playwright (#1961)
* Add basic test harness for browserstack/playwright

* Refactor the tests

* added the first test for outbound links

* tests for outbound-links and file-downloads

* added more browser versions to test on

* Lint tracker test files

* Update harness.js with BrowserStack example

* Fix Playwright request mocks

* Add test harness to CI

* Remove Safari on Windows from browsers list

Co-authored-by: Robert <robertjoonas16@gmail.com>
Co-authored-by: Vinicius Brasil <vini@hey.com>
4 years ago
Uku Taht bcd7052682
Update CODE_OF_CONDUCT.md 4 years ago
Uku Taht 65c8970474
Update CODE_OF_CONDUCT.md 4 years ago
Uku Taht 51553e4cc6
Update CODE_OF_CONDUCT.md 4 years ago
Uku Taht 61d2ad7d77
Update CODE_OF_CONDUCT.md 4 years ago
Uku Taht 73bfc2fd59
Create CODE_OF_CONDUCT.md 4 years ago
Vinicius Brasil 4b9032d822
Google Analytics Import Refactor (#2046)
* Create separate module for GA HTTP requests

* Fetch GA data entirely instead of monthly

* Add buffering to GA imports

* Change positional args to maps when serializing from GA

* Create Google Analytics VCR tests
4 years ago