OAuth Authentication for Google Analytics
Get detailed instructions on how to set up your Google Analytics integration with an OAuth Authentication.
Recommended Approach
For most use cases, we recommend using a Service Account instead of OAuth. Service Accounts provide more secure and scalable access to Google Analytics data. However, if you prefer OAuth or have specific requirements, follow the steps below.
Prerequisites
A Google account with access to the desired Google Analytics properties
OAuth Authentication Process
1. Initiate OAuth Flow
Click the "Connect to Google Analytics" button in Smaply
You will be redirected to Google's OAuth consent screen
2. Grant Permissions
Sign in with your Google account (if not already signed in)
Review the permissions requested by Smaply
Click "Allow" to grant access to your Google Analytics data
3. Verify Account Suitability
After granting permissions, Smaply will automatically check:
If your account has access to any Google Analytics properties
The list of properties you have access to
Your permission level for each property (e.g., Read & Analyze, Edit, Manage Users, etc.)
Note: Ensure you're using a Google account that has the necessary permissions for the Google Analytics properties you want to integrate with Smaply.
Troubleshooting
If you encounter issues during the OAuth process or property verification:
No properties available: Ensure your Google account has access to at least one Google Analytics property
Insufficient permissions: Check your access level in Google Analytics. You need at least "Read & Analyze" permissions for the properties you want to integrate
OAuth errors: Try clearing your browser cache and cookies, then attempt the process again
Tip: If problems persist, contact your Google Analytics administrator to verify your account permissions, or reach out to Smaply support for assistance.
Token Expiration: OAuth tokens have an expiration period. Smaply will handle token refresh automatically, but ensure you don't revoke the app's permissions in your Google account to maintain uninterrupted access.
Last updated