Smart Google Analytics

Overview

Description

The Smart Google Analytics Plugin provides detailed insights into your website’s traffic and user interaction. It bridges the gap between your Craft CMS dashboard and Google Analytics, offering real-time data on website visitors, including geographical locations, keywords driving traffic, and browser/device information. Admins can create customizable views and display this information in an easily accessible dashboard.

Plugin's purpose and benefits

This plugin enables you to:

  • View real-time visitor data on your website.
  • Display analytics using customizable widgets on your Craft CMS dashboard.
  • Gain insights into audience behavior, geographical data, and device/browser information.
  • Monitor keyword performance and implement data-driven strategies.

Get Started

Quick setup instructions

 Log in to the Craft CMS control panel.
Step 1
Log in
Log in to the Craft CMS control panel.
 Go to the
Step 2
Plugins
Go to the "Plugins" section.
Find and select the desired plugin.
Step 3
Activation
Find and select the desired plugin.
Click
Step 4
Install
Click "Install" and follow any setup instructions.
Questions about our plugins?

How To Use & Features

How Does This Extension Work?

Smart Google Analytics integrates with Google Analytics to provide website performance reports directly within the Craft CMS dashboard. Admins can create multiple analytics views, configure various chart types, and remove outdated views when needed.

Major Features:

  1. Create multiple views or edit existing ones to match specific needs.
  2. Remove unnecessary views.
  3. On the Analytics Dashboard Page, numerous charts will be displayed with the help of widgets.
  4. Display different types of charts such as line charts, pie charts, geo charts, etc.
  5. Monitor page views, sessions, bounce rates, and more.
  6. Use real-time reports to track current visitor behavior on the website.
  7. Customize widgets with different metrics and dimensions for more targeted reports.

Installation Steps

From the Plugin Store (Without Composer):

  1. Open the Plugin Store in the Craft CMS Admin Panel.
  2. Search for "Smart Google Analytics."
  3. Click “Install.”

With Composer on Command Prompt:

  • Open Command Prompt/Terminal and navigate to your project directory:
    cd /path/to/my-project
  • Require the plugin using the command:
    composer require zealouswebcraftcms/smart-google-analytics
  • Install the plugin:
    /craft install/plugin smart-google-analytics

How to Generate Client ID, Client Secret Key, and Map API Keys:

Step 1: Create a Project in Google API Console Developers
  1. Sign in to "Google's Developers Console."
  2. Create a new project or use an existing one:
    • Click on the dropdown on the right side of Google Cloud Platform.
    • Click on ‘New Project,’ then mention your project name, organization, and location, then click 'Create'.
    • To select your project, click on the dropdown on the right side of Google Cloud Platform and choose your desired project.

    Step 2: Activate the Google Analytics APIs

    • In API & ServicesLibrary, search for "analytics" and then enable:
      • Google Analytics API
      • Google Analytics Reporting API
      • Google Analytics Data API

    Step 3: Get Your API Keys

    1. Navigate to the Credentials tab.
    2. Click on Configure consent screen to set up your application name.
      • Select user type and fill out the details on the form, including application name and user support email, then click the save button.
    3. Scroll down in the 'Developer Contact Information' section, add your email, then save and continue.
    4. (Optional) If you want to add scope, you can do so and then save it.
    5. Select your application type:
      • Go to the Credentials tab again.
      • Click Create Credentials and choose OAuth client ID from the dropdown.
      • Choose 'Web Application' as the application type.
      • Fill out any name you like in the 'Name' field and add an Authorized JavaScript Origins (your host URL, e.g., http://localhost).
      • Add an Authorized Redirect URI (available on the settings page).
      • Click on the create button.
    6. Once the OAuth client is created, Google will provide your client ID and secret. Place your Client IDs and Client Secret key in the project.

    Step 4: Get Your Map API Keys

    1. In API & ServicesLibrary, search for "Maps JavaScript API," then enable it.
    2. Go to the Credentials tab again, click the Create Credentials link, and choose API key from the dropdown.
    3. A dialog box will appear displaying your generated API key. Click Close.
    4. The new API key will be listed on the Credentials page under API keys. Place your Map API key in the project and save it.

    General Settings:

    To authenticate with your Google Analytics account, you need to enter the Client ID, Client Secret, and Map API Key, then click on the 'Save' button. After saving these fields, click on the connect button to connect with your Google Console Developer Account.

    • Client ID: Enter your Client ID in the respective TextField on the Settings page.
    • Client Secret: Enter your Client Secret key in the respective TextField on the Settings page.
    • Map API Key: Enter your Map API key in the respective TextField on the Settings page.

    Usage

    After adding the required information on the settings page, move on to the view tab, where you can create new views.

    Add/Edit Views:

    • Create a view by selecting your analytics profile, chart name, chart type, order, status, metrics, and dimensions according to your requirements.
    • The dimension field is managed according to various chart types. For example, when using a STAT chart, its data is displayed using metrics only; there is no need for dimension selection.
    • The order field needs to be unique for all accounts, as this determines the order of the graph displayed on the dashboard.
    • The status field determines whether the view is displayed on the dashboard (Active or Inactive).
    • You can edit any view later.

    View List:

    • On the list page, you can sort data for particular fields.

    Delete View:

    • You can delete a view on the list page.

    Analytics Dashboard Page:

    On the Analytics Dashboard Page, you can display multiple reports with different widgets using your views. You can also filter data on the dashboard based on the desired time range, traffic source, or specific pages.

Get Support

FAQs

Can we install this extension using composer?

Yes, you can install this extension via composer by following these steps.

Change log

version 1.0.0

  • Initial release

Get Premium Support

Request a Quote

Submit this form now and we will get back to you promptly!