Tracking individual agent performance inside a Delegated Mailbox can be vital for understanding team performance and ensuring accountability.
Email Meter provides a simple solution for capturing detailed metrics about each agent’s actions in Delegated Mailboxes if the send on behalf of permission is enabled.
If you’d like to get agent performance metrics without turning on the Send on Behalf setting, the only alternative is enabling BigQuery logs for your Google Workspace domain, and giving access to Email Meter to those logs to capture that information.
You’ll need admin permissions in your Google Workspace domain or get in touch with your Google Workspace Admin to follow through with these instructions.
Requirements
- A supported Google Workspace edition:
- Enterprise Standard or Plus
- Education Standard or Plus
- Frontline Standard
- Enterprise Essentials Plus
- A Google Cloud Platform project with billing enabled
- BigQuery logs export configured for your domain
- Granting Email Meter access to those logs
Steps
Set up BigQuery
First, you’ll need to set up a BigQuery project to store your Google Workspace logs:- Create or open a project in Google Cloud Console
- Add a Google Workspace admin account as Project Editor
- Grant the
gapps-reports@system.gserviceaccount.comservice account Editor access
Enable logs export
Then, you need to configure the export of Google Workspace logs to BigQuery:- Sign in to the Google Admin console
- Go to Menu > Reporting > Data Integrations
- Enable Google Workspace data export to BigQuery
- Specify a dataset name where the logs will be stored (you’ll need this dataset name for the SQL query in the next section)
Share access with Email Meter
After completing the previous steps, follow these instructions to securely share access with Email Meter:Create a BigQuery Table Function
Create a separate dataset namedemailmeter_auditlogs in your BigQuery project where you’ll create a table function. This dataset will be shared with Email Meter, keeping your main audit logs dataset private.
Run the following SQL code in BigQuery to create the table function:
{project_id}: your Google Cloud Project ID{logs_dataset_id}: the dataset name where your Google Workspace audit logs are being synced (configured in the “Enable logs export” step above)
The table function acts as a secure interface to your audit logs, allowing Email Meter to query specific data without accessing your entire audit logs dataset.
Authorize the routine
In your main audit logs dataset (the one where Google Workspace syncs the logs), you need to authorize the table function you just created:- Go to your audit logs dataset in BigQuery
- Click on “Authorized routines” (or “Sharing” > “Authorized routines”)
- Click “Add authorization” or “Authorize routine”
- Select the project, dataset (
emailmeter_auditlogs), and routine (delegate_user_logs) you created in the previous step - Click “Add authorization”
Grant Email Meter access to the routine dataset
Finally, grant the Email Meter service account access to only the dataset containing the table function:- Go to the
emailmeter_auditlogsdataset you created earlier - Click on “Sharing” > “Permissions”
- Click “Add principal”
- Add the Email Meter service account:
email-meter-google-auditlogs@beam-storm-production.iam.gserviceaccount.com - Assign the role: BigQuery Data Viewer
- Click “Save”
This approach ensures Email Meter can only query through the authorized table function and cannot access your raw audit logs directly.
Contact your Business Intelligence Consultant
Once you’ve completed all the steps above, contact your Business Intelligence Consultant at Email Meter to verify the connection. You’ll need to provide them with:- Your Google Cloud Project ID
- Your Dataset ID (which should be
emailmeter_auditlogsbased on the instructions)
Frequently asked questions
Why do I need to enable billing in Google Cloud?
Why do I need to enable billing in Google Cloud?
BigQuery requires billing to be enabled to store and process logs. However, you will only be billed for the queries you perform. You can always monitor your usage and adjust your queries to optimize costs according to your needs.
How long does it take for the data to appear in my dashboard?
How long does it take for the data to appear in my dashboard?
Once everything is set up, logs are processed daily. This means that agent performance metrics will be available in your dashboard the day after the email activity occurred.
Isn't there another alternative to get these metrics?
Isn't there another alternative to get these metrics?
No, BigQuery logs are the only way to get events performed by specific users inside delegated mailboxes when the “Send on Behalf” feature is disabled.