diff --git a/README.md b/README.md index fb728af..b41fa32 100644 --- a/README.md +++ b/README.md @@ -624,7 +624,7 @@ Here's the outline of what we'll do: - [Integrate with Google Search](#integrate-with-google-search) - [Enable APIs for Google Search integration](#enable-apis-for-google-search-integration) - [Link it with Plausible](#link-it-with-plausible) -- [Import historical data from Universal Analytics](#import-historical-data-from-universal-analytics) +- [Import historical data from UA and GA4](#import-historical-data-from-ua-and-ga4) - [Enable APIs for exports on Google Cloud](#enable-apis-for-exports-on-google-cloud) - [Import into Plausible](#import-into-plausible) @@ -786,7 +786,7 @@ Go to the site settings on your Plausible dashboard. -In the settings select Search Console and press Continue with Google +In the settings select Integrations and press Continue with Google > If you see a warning instead, that means you haven't set the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables [correctly.](#issue-an-oauth-client-and-key-for-that-application) @@ -814,7 +814,13 @@ Pick the property from Search Console. And now we should be able to drilldown into Google search terms like on [plausible.io](https://plausible.io/plausible.io/referrers/Google?source=Google) -### Import historical data from Universal Analytics +### Import historical data from UA and GA4 + +Exporting historical data from Google requires enabling multiple APIs: + + + +Gotta Catch ‘Em All! #### Enable APIs for exports on Google Cloud @@ -834,13 +840,31 @@ And enable it. +Now search for Google Analytics Admin API + + + +And also enable it. + + + +Finally search for Google Analytics Data API + + + +And enable it! + + + +Phew! + #### Import into Plausible Go to the site settings on your Plausible dashboard. -In the General settings section scroll down to Data Import from Google Analytics and press Continue with Google button. +In the Imports & Exports settings section press on the Google Analytics button. > If you see a warning instead, that means you haven't set the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables [correctly.](#issue-an-oauth-client-and-key-for-that-application) diff --git a/images/6-continue.png b/images/6-continue.png index ec18d36..6d0124b 100644 Binary files a/images/6-continue.png and b/images/6-continue.png differ diff --git a/images/6-data-continue.png b/images/6-data-continue.png index 2191fb7..801bac6 100644 Binary files a/images/6-data-continue.png and b/images/6-data-continue.png differ diff --git a/images/6-data-import.png b/images/6-data-import.png index 13e5876..9ceb97c 100644 Binary files a/images/6-data-import.png and b/images/6-data-import.png differ diff --git a/images/6-enabled-apis.png b/images/6-enabled-apis.png new file mode 100644 index 0000000..6afbdc4 Binary files /dev/null and b/images/6-enabled-apis.png differ diff --git a/images/6-plausible-settings-search-console.png b/images/6-plausible-settings-search-console.png index e29c633..7ce596c 100644 Binary files a/images/6-plausible-settings-search-console.png and b/images/6-plausible-settings-search-console.png differ diff --git a/images/6-property.png b/images/6-property.png index 3630b79..dbdf618 100644 Binary files a/images/6-property.png and b/images/6-property.png differ diff --git a/images/6-sign-in-copycat.png b/images/6-sign-in-copycat.png index ca485de..f9abb6a 100644 Binary files a/images/6-sign-in-copycat.png and b/images/6-sign-in-copycat.png differ diff --git a/images/6-view-search-console-data.png b/images/6-view-search-console-data.png index 8f9d993..e38fc95 100644 Binary files a/images/6-view-search-console-data.png and b/images/6-view-search-console-data.png differ diff --git a/images/7-analytics-admin-api-enable.png b/images/7-analytics-admin-api-enable.png new file mode 100644 index 0000000..fc98bcf Binary files /dev/null and b/images/7-analytics-admin-api-enable.png differ diff --git a/images/7-analytics-admin-api-search.png b/images/7-analytics-admin-api-search.png new file mode 100644 index 0000000..763d16e Binary files /dev/null and b/images/7-analytics-admin-api-search.png differ diff --git a/images/7-analytics-data-api-enable.png b/images/7-analytics-data-api-enable.png new file mode 100644 index 0000000..7f25f08 Binary files /dev/null and b/images/7-analytics-data-api-enable.png differ diff --git a/images/7-analytics-data-api-search.png b/images/7-analytics-data-api-search.png new file mode 100644 index 0000000..043adb1 Binary files /dev/null and b/images/7-analytics-data-api-search.png differ