Contents:

  1. How to create a Google Analytics account

  2. How to integrate Google Analytics into your website

  3. How to make Google Analytics live stats show on your dashboard

Note: Traffic report for AliDropship Woo is here.

If you want to check all your traffic stats on-site dashboard, you need to integrate your Google Analytics code into the plugin.

If you do not have a Google Analytics account, you can easily create one for free on the Google Analytics website.

1. How to create a Google Analytics account

Click here to access Google Analytics. If you have a Google account and are not signed in, click Sign in to Analytics. If you do not have a Google account, choose Get started today.

Click Start measuring:

  • Type in your account name (you can use your domain name for that) and click Next:

  • Type in your property name (you can use your domain name for that) and click Show advanced options:

  • Enable Create a Universal Analytics property, type in your Website URL, click the Create a Universal Analytics property only radio button, and then click Next:

  • Fill in your business information (you can choose any info) and click the Create button:

  • In the 'Google Analytics Terms of Service Agreement' that opens, make sure that the boxes are ticked and click I Accept:

  • If this pop-up appears, choose which you will be notified for and click the Save button:

2. How to integrate Google Analytics into your website

Sign in to your Google Analytics account. Click Admin → Tracking info → Tracking Code. Copy the script below Global Site Tag:

  • Go to your site's WP dashboard → Customization → Head → CSS and Scripts Customization and paste the copied script in the < head > tag container for head elements field. Click Save Settings:

3. How to make Google Analytics live stats show on your dashboard

  • In the Dashboard, click Create project:

  • Or click Select a project → New Project in the Google Developers Console:

  • Enter your Project Name and click the Create button:

  • Go to Dashboard and click the Enable APIs and Services:

  • Scroll down to the Other section and click Google Analytics API:

  • Then click Enable:

  • Go to the Credentials tab and click the Configure Consent Screen button:

  • Choose the External user type (read more about user types HERE) Click Create:

  • In App information, enter your App name and User support email:

  • In Authorized domains, click the +Add domain button and enter your domain name:

  • In Developer contact information, enter your contact email address and click Save and continue:

  • In the next two steps (Scopes and Test users), click Save and continue:

  • In Summary, click Back to dashboard:

  • Click Publish app:

  • In the popup window, click Confirm:

  • Click Credentials Create Credentials and select the OAuth client ID option:

  • In Application type, select Web application and enter Name:

  • In Authorized JavaScript origins, click +ADD URI and enter your domain name in URIs 1:

  • In Authorized redirect URIs, click +ADD URI and paste the link to your site's Traffic report. Click the Create button:

  • Your Client ID and Your Client Secret will be displayed to you:

  • Copy them and paste in your WordPress admin area: AliDropship Reports Traffic Report. Click Continue:

  • Click Get Access Code:

  • If you see this screen, click Advanced → Go to ... (your app):

  • Now you can choose an account to continue → copy the Access code and paste it in the WordPress admin area: 

Done!

Did this answer your question?