mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 03:21:37 +03:00
4d7d88cfec
* Implement LV date input using flatpickr * Implement basics of GA4 import (very dirty WIP) * Split Google HTTP API into UA and GA4 specific parts * Add a quick way to record GA4 API responses * Add first GA4 import fixtures with GA4 Data API responses * Extract GA4 and UA specific logic form Google API * Extract UA and GA4 specific actions to distinct controllers * Add integration test for GA4 importer * Update GA4 fixtures * Test GA4 API * Add debug logging and fix paginating through API results in in GA4 import * Revert "Implement LV date input using flatpickr" This reverts commit c696f8ee39d5702f27015c09a4f079ca124cc7bb. * Fix note
14 lines
292 B
Elixir
14 lines
292 B
Elixir
defmodule Plausible.Google.API.Mock do
|
|
@moduledoc """
|
|
Mock of API to Google services.
|
|
"""
|
|
|
|
def fetch_stats(_auth, _query, _limit) do
|
|
{:ok,
|
|
[
|
|
%{"name" => "simple web analytics", "count" => 6},
|
|
%{"name" => "open-source analytics", "count" => 2}
|
|
]}
|
|
end
|
|
end
|