This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create credentials json file | |
# 1. Go to Google API Console | |
# 2. Create credentials (Service Account Key). Note 'Service account ID' | |
# 3. Download key as 'google_auth.json' | |
# 4. Go to Google Analytics -> Admin -> View Settings. Note 'View ID' | |
# 5. Go to User Management -> Add permissions for: (Service account ID) [Read & Analyze] | |
# Terminal | |
export GOOGLE_APPLICATION_CREDENTIALS='config/google_auth.json' |