analytics/test/support/google_api_mock.ex
Uku Taht 99bc20a8b3
Referrer drilldown (#252)
* Referrer drilldown

* Render external links for referrer drilldown modal

* Rename top pages to entry pages

* Add google keywords to referrer drilldown

* Fix link in source modal

* Remove back link from referrer drilldown

* Fix tests

* Mix format

* Remove unused function

* Get top stats from the events table

* Revert "Get top stats from the events table"

This reverts commit 67384e2d35.

* Fix pages modal title

* Improve pages report in referrer drilldown

* Fix label in referrer drilldown
2020-07-30 11:18:28 +03:00

10 lines
234 B
Elixir

defmodule Plausible.Google.Api.Mock do
def fetch_stats(_auth, _query, _limit) do
{:ok,
[
%{"name" => "simple web analytics", "count" => 6},
%{"name" => "open-source analytics", "count" => 2}
]}
end
end