Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plausible-analytics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
varac-projects
plausible-analytics
Commits
3a0ec548
Commit
3a0ec548
authored
3 years ago
by
Uku Taht
Browse files
Options
Downloads
Patches
Plain Diff
Log import issue
parent
8aa38e14
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/plausible/imported/site.ex
+3
-0
3 additions, 0 deletions
lib/plausible/imported/site.ex
lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eex
+1
-1
1 addition, 1 deletion
...mplates/site/import_from_google_user_metric_form.html.eex
with
4 additions
and
1 deletion
lib/plausible/imported/site.ex
+
3
−
0
View file @
3a0ec548
defmodule
Plausible
.
Imported
do
use
Plausible
.
ClickhouseRepo
use
Timex
require
Logger
def
forget
(
site
)
do
Plausible
.
ClickhouseRepo
.
clear_imported_stats_for
(
site
.
id
)
...
...
@@ -9,6 +10,8 @@ defmodule Plausible.Imported do
def
from_google_analytics
(
nil
,
_site_id
,
_metric
,
_timezone
),
do
:
{
:ok
,
nil
}
def
from_google_analytics
(
data
,
site_id
,
table
)
do
Logger
.
debug
(
"Processing imported data (table=
#{
table
}
):
#{
inspect
(
data
)
}
"
)
data
=
Enum
.
map
(
data
,
fn
row
->
new_from_google_analytics
(
site_id
,
table
,
row
)
...
...
This diff is collapsed.
Click to expand it.
lib/plausible_web/templates/site/import_from_google_user_metric_form.html.eex
+
1
−
1
View file @
3a0ec548
<div
class=
"max-w-md w-full mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 pt-6 pb-8 mb-4 mt-8"
>
;
<div
class=
"max-w-md w-full mx-auto bg-white dark:bg-gray-800 shadow-md rounded px-8 pt-6 pb-8 mb-4 mt-8"
>
<h2
class=
"text-xl font-black dark:text-gray-100"
>
Import from Google Analytics
</h2>
<div
class=
"mt-6 text-sm text-gray-500 dark:text-gray-200"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment