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

[SPIKE] Get Google Analytics data for Company pages #738

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MAILGUN_DOMAIN=app-email-domain
MAILGUN_SANDBOX_DOMAIN=sandboxlongkey.mailgun.org

SHF_SENDER_EMAIL=hello@app-email-domain
SHF_EMAIL_DISPLAY_NAME='Sveriges Hundföretagare'
SHF_EMAIL_DISPLAY_NAME='Sveriges Hundföretagare'
SHF_FROM_EMAIL='info@sverigeshundforetagare.se'
SHF_REPLY_TO_EMAIL='medlem@sverigeshundforetagare.se'

Expand Down Expand Up @@ -125,3 +125,18 @@ BRANCH=vcs_branch
#
# (Contact the project admin for the app id for this project.)
#SHF_FB_APPID='1234567890'


# --------------------------------------------
# GOOGLE API Service Account Credentials
# --------------------------------------------
# (Contact the project admin for the values.)
SHF_GOOGLE_APPLICATION_CREDENTIALS_FILE="config/google-api-client-secrets.json"
SHF_GOOGLE_API_KEY='some-api-key'
SHF_GOOGLE_PROJECT_ID='key-for-this-project'
SHF_GOOGLE_ACCOUNT_TYPE='service'
SHF_GOOGLE_ANALYTICS_VIEW_ID='view-id'
SHF_GOOGLE_CLIENT_EMAIL='email-for-the-service-account'
SHF_GOOGLE_UNIQUE_ID='google-id-for-this-service-account'
SHF_GOOGLE_PRIVATE_KEY='private-api-key'
# --------------------------------------------
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public/ckeditor_assets
# do not put config/secrets.yml into repository
config/secrets.yml

# do not put Google API client secrents into the repository
config/google-api-client-secrets.json

# ignore all directories named rubycritic no matter where they are
# (rubycritic gem reports: do not put individual rubycritic reports into the repo)
/**/rubycritic/
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ gem 'counter_culture', '~> 2.0'

gem 'cookies_eu'

gem 'google-api-client' # Google Analytics REST API


group :development, :test do
gem 'rspec-rails'
gem 'shoulda-matchers'
Expand Down
Loading