This guide explains how to configure the Snowtech GA Widget to connect Google Analytics 4 and Google Search Console to WHMCS.
Step 1 – Create a Google Cloud Project
- Go to Google Cloud Console
- Create a new project
Step 2 – Enable APIs
Enable the following APIs:
- Google Analytics Data API
- Google Search Console API
Step 3 – Create Service Account
- Go to IAM & Admin → Service Accounts
- Create a new service account
- Generate a JSON key
- Download the file
Step 4 – Upload JSON Key
Upload the JSON file to your server outside public_html.
Recommended path:
/home/USERNAME/whmcs_secrets/google-service-account.json
Step 5 – Grant GA4 Access
- Open Google Analytics
- Go to Admin → Property Access Management
- Add the service account email
- Assign role Viewer
Step 6 – Grant Search Console Access
- Open Search Console
- Select your property
- Go to Settings → Users and Permissions
- Add the service account email
Step 7 – Configure WHMCS Addon
Go to:
Addons → Snowtech GA Widget
Enter the following:
| Setting | Description |
|---|---|
| GA4 Property ID | Numeric ID from Google Analytics |
| Search Console Property | Example: https://example.com/ or sc-domain:example.com |
| Service Account JSON Path | Full server path to JSON file |
| Widget Height | e.g. 650px or 70vh |
Step 8 – Save Settings
Click Save Changes to apply configuration.
Configuration Complete
Your widget will now begin displaying Google Analytics and Search Console data.