Google Analytics Integration
Enhance your Davinci AI platform with Google Analytics to track user behavior and gain valuable insights. This guide walks you through setting up Google Analytics for your Davinci AI website.
Introduction
Davinci AI’s Google Analytics integration allows you to track and analyze user behavior on your platform. By adding Google Analytics, you can gain valuable insights into how users interact with your Davinci AI website, helping you make data-driven decisions to improve user experience and engagement.
Frontend - Google Analytics Configuration
Follow these steps to connect Google Analytics with your Davinci AI platform’s frontend page:
Step 1
If you don’t have a Google Analytics account, sign up here.
Step 2
Once logged in, click on the Admin button on the bottom right corner.
Step 3
Create a new Property for your Davinci AI website
Step 4
Fill in the property details and rest of the information as needed.
Step 5
Go to the home page and copy your Measurement ID.
Step 6
Login to the Davinci AI as Admin. Go to the Admin Panel -> General Settings -> Global Settings and scroll to Google Analytics section.
Inlude your Google Analytics Tracking ID that you copied in the previous step, turn on the Enable Google Analytics checkbox and click on Save button.
Step 7
You now have completed the Google Analytics configuration for frontend.
Admin Dashboard - Google Analytics 4 Configuration
Davinci AI has integrated Google Analytics metrics view in the Admin Dashboard page, so you could directly see all your metrics from your Google Analytics account in your Admin Panel.
Step 1
Login into your Google Cloud Console account.
Step 2
Once logged in, select your project that you want to use.
Step 3
Search for google analytics data api and select it among the search results as shown below.
Step 4
After selecting it make sure to Enable it.
Step 5
Next, select Credentials tab from side menu.
Step 6
While you are on the Credentials page, select Manage Service Accounts.
Step 7
Next click on Create Service Account.
Step 8
Provide require information as you prefer and click Done.
Step 9
Next select your newly created service account and under Actions column, select Manage Keys.
Step 10
Next select Create New Key.
Step 11
Next select Select key type to be JSON and save the file somewhere, you will need it soon..
Step 12
Now let’s setup your Google Analytics account. Loging to your Google Analytics account (by default it is not GA4 only) and select your target account and click on Admin button at the bottom
Step 13
Next select Account Access Management.
Step 14
Next click on the Add Users button.
Step 15
Enter the email same as the client_email from the json file that you generated at step 11.
Step 16
Next select Property Settings.
Step 17
Save the Property ID value.
Step 18
Login to the Davinci AI as Admin. Go to the Admin Panel -> General Settings -> Global Settings and scroll to Google Analytics section.
Enter your *Google Analytics Property ID and Google Service Account Credentials JSON File Name and click save.
Step 19
Last important step would be to upload your json file to you hosting and store it under storage/app/analytics/>
Step 20
You now have completed the Google Analytics 4 configuration for admin dashboard.