Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I910 google analytics #942

Merged
merged 3 commits into from
Dec 11, 2023
Merged

I910 google analytics #942

merged 3 commits into from
Dec 11, 2023

Conversation

kirkkwang
Copy link
Contributor

@kirkkwang kirkkwang commented Dec 8, 2023

Story

🧹 Revert and modify previous Google Analytics work

06aa95b

This commit will revert the previous Google Analytics work and modify it
to use the new Google Analytics 4 (GA4) tracking code.

Ref:

🎁 Overwrite Hyrax's ga4 partial

3231692

This commit will overwrite Hyrax's ga4 partial to handle Hyku's
multitenancy.

Ref:

Expected Behavior Before Changes

Google Analytics was using the deprecated Universal Analytics from Google Analytics.

Expected Behavior After Changes

Now we are using Google Analytics 4.

Screenshots / Video

Proprietor image
Tenant same as Proprietor image
Tenant Google Analytics ID not set image
Tenant different than Proprietor image
Google Analytics Dashboard with one visitor (me) image

@kirkkwang kirkkwang requested a review from jeremyf December 8, 2023 18:44
config/analytics.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@jeremyf jeremyf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing and blocking for now

.env Outdated Show resolved Hide resolved
.env Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
app/views/shared/_ga4.html.erb Show resolved Hide resolved
config/locales/simple_form.en.yml Show resolved Hide resolved
config/locales/simple_form.es.yml Show resolved Hide resolved
config/locales/simple_form.fr.yml Show resolved Hide resolved
config/locales/simple_form.it.yml Show resolved Hide resolved
config/locales/simple_form.pt-BR.yml Show resolved Hide resolved
config/locales/simple_form.zh.yml Show resolved Hide resolved
ops/production-deploy.tmpl.yaml Outdated Show resolved Hide resolved
config/analytics.yml Outdated Show resolved Hide resolved
ops/production-deploy.tmpl.yaml Outdated Show resolved Hide resolved
@kirkkwang kirkkwang force-pushed the i910-google-analytics branch 3 times, most recently from 81ffd57 to eb6fc83 Compare December 11, 2023 15:21
@kirkkwang kirkkwang requested a review from jeremyf December 11, 2023 15:27
README.md Outdated Show resolved Hide resolved
README.md Outdated
@@ -256,12 +255,6 @@ Once you run this script the value is on your local computers clipboard. You wil
| FCREPO_TEST_BASE_PATH | Fedora root path used for test instance | /test | yes
| FCREPO_TEST_PORT | Test port for the fedora repo 8986 | yes |
| GOOGLE_ANALYTICS_ID | The Google Analytics account id. Disabled if not set | - | no |
| GOOGLE_OAUTH_APP_NAME | The name of the application. | - | no |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should also be restored

@kirkkwang kirkkwang force-pushed the i910-google-analytics branch from eb6fc83 to 1a36dc8 Compare December 11, 2023 15:41
@kirkkwang kirkkwang requested a review from jeremyf December 11, 2023 15:42
kirkkwang and others added 3 commits December 11, 2023 08:10
This commit will revert the previous Google Analytics work and modify it
to use the new Google Analytics 4 (GA4) tracking code.

Ref:
  - #479
This commit will overwrite Hyrax's ga4 partial to handle Hyku's
multitenancy.

Ref:
  - #910
@kirkkwang kirkkwang force-pushed the i910-google-analytics branch from 1a36dc8 to f80a487 Compare December 11, 2023 16:10
@kirkkwang kirkkwang merged commit 00e6345 into main Dec 11, 2023
5 of 7 checks passed
@kirkkwang kirkkwang deleted the i910-google-analytics branch December 11, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants