Skip to content

Commit

Permalink
feat: add google analytics to capture user properties and clicked das…
Browse files Browse the repository at this point in the history
…hboard event
  • Loading branch information
saladgg committed Sep 26, 2022
1 parent d1d1561 commit 6b32a9a
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 53 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
DJANGO_SECRET_KEY: "${{ secrets.DJANGO_SECRET_KEY }}"
DOCKER_BUILDKIT: 1 # Enable Buildkit and let compose use it to speed up image building
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GOOGLE_ANALYTICS_ID: "${{ secrets.GOOGLE_ANALYTICS_ID }}"
GOOGLE_APPLICATION_CREDENTIALS: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}"
GOOGLE_CLOUD_PROJECT: "${{ secrets.GOOGLE_CLOUD_PROJECT }}"
POSTGRES_DB: postgres
Expand Down
2 changes: 2 additions & 0 deletions apps/frontend/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Any, Dict

from django.conf import settings
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView

Expand All @@ -11,5 +12,6 @@ class HomeView(LoginRequiredMixin, TemplateView):

def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
context = super().get_context_data()
context["GOOGLE_ANALYTICS_ID"] = settings.GOOGLE_ANALYTICS_ID
Dashboard.objects.all()
return context
2 changes: 1 addition & 1 deletion assets/static/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -10727,4 +10727,4 @@ h3 {

.row.align-page-content {
display: grid !important;
}
}
2 changes: 1 addition & 1 deletion assets/static/css/project.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/static/images/undraw_posting_photo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/static/images/undraw_profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/static/images/undraw_profile_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/static/images/undraw_profile_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/static/images/undraw_profile_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6b32a9a

Please sign in to comment.