You can connect Google Analytics with your website by clicking on the Google Analytics link under the SEO menu of your website admin screen.
First, you need to check the Enable Google Analytics tracking,
Then provide your Google Analytics Tracking ID under “Enter your tracking ID” input box. You can follow this quick process to find your tracking ID.
If you are in the EU, you will have to check “Request user’s consent for analytics tracking (required by GDPR)” for law compliance. Otherwise, you might want to keep it unchecked.
You can then enter a custom consent message for user tracking if you have enabled the tracking opt-in option just above this one.
You can rename the Accept button under “Accept button for user tracking” that is used for getting your tracking consent accepted by a visitor.
If you wish to exclude a certain role or roles from user tracking, you can do so by checking the provided roles right next to the “Exclude user roles from tracking”. So the checked user roles will not be tracked by Google Analytics.
The most important thing is to click “Save Changes” as you’re done making the required changes to the provided options.
You Can Configure Your Google Analytics Tracking Code with the Following Custom Options
Enable Remarketing, Demographics, and Interests Reporting
Remarketing user-base is primarily a list of users you want to re-engage with because of their higher conversion chances, that they are like to return and buy from you in the future. Remarketing takes place with the help of browser cookies. We can detect whenever a user with a cookie revisits.
Check it to enable Remarketing, demographics, and interests reporting.
Enable IP Anonymization
If an analytics customer requests IP Anonymization, this means such a user does not want to show the real IP to the website. Analytics anonymises the IP address as soon as possible while still collecting information.
Enhanced Link Attribution
You can improve the In-page accuracy of Analytics by differentiating multiple links to the same URL on one page. You can do so automatically by checking this option. Link element ID’s will be used for doing so.
Enable Cross-Domain Tracking
If you have multiple domains that have multiple related sites, you can enable cross-domain tracking to let analytics see multiple sessions on these sites as a single session. It is often known as site linking.
You can enter the cross-domains with a domain name and TLD only, i.e avoori.com, avoori.net, etc.
Tracking Events in Google Analytics
Tracking Events in Google Analytics is pretty straight-forward with these options.
Enable External Links Tracking
Check this option if you want to track all the external links, even the ones that have a _blank target attribute.
Enable Download Tracking
If you want to track downloads, any files for example PDF, XLSX, DOCX or others will be tracked if you enable this option.
Track downloads clicks
You can specify the file type extensions for which you want to track download clicks. If you want to track multiple file types, you can do so by using a “pipe” i.e | in between two extensions without space.
Enable Affiliate/Outbound Tracking
All the affiliate links will be tracked, all those links that are disguised using aff, go, out, recommends and by such names usually via affiliate WordPress plugins.
Track Affiliate / Outbound links
You can specify the affiliate/outbound link type that you want to track. You can enter multiple keywords such as aff, go and more using a pipe “|” in-between.
Hit “Save Changes” when you’re done.
Configure Google Analytics Custom Dimensions
Here’s how you can configure your Google Analytics custom dimensions.
In a nutshell, custom dimensions are like the default metrics in your Analytics account, except you personally create them. You can use them to collect and analyze data that analytics doesn’t automatically track.
For this to work, you will have to set up your custom dimensions in your Google Analytics account.
You have the following tracking options and you can choose the relevant options from the dropdown menu.
Track Post Types
Track Logged in Users
Do not forget to save changes when you are done making any change.
Google Analytics API Settings
You can choose the time period from the drop-down currently set to 30 days ago and Stats to Sessions. Once it’s authenticated from the Analytics API Settings tab right next to it, the relevant data will be shown here.
Available Filter Options in Google Analytics Panel
You will have the following options to choose from for the Stats options under Site Analytics.
Page Views per session
Average session duration
Technically, a web session starts when you open a browser window and it remains active until you close the browser. So a user’s session for a website stays active until he has its website tab open. A website owner can, however, define the time frame of a session as well. So even if you have a site open, you might have to re-login to active a new session to continue surfing the administrative sections of a website.
Connect with Google Analytics API
For connecting with Google Analytics API, you will have to make or retrieve a Google Console Client ID and Secret ID from Google Console. It can be made in a few minutes for free.
You need to enter these here and save changes.