Personal tools
Namespaces

Variants
Actions

Google Analytics For WHMCS

From ModulesGarden Wiki
Jump to: navigation, search

Contents

About Google Analytics For WHMCS

Google Analytics For WHMCS will ena.............
  • Admin Area Features:
✔ Create/Suspend/Unsuspend/Terminate Account
  • General Info:
✔ Requires Google Cloud Partner Program / Reseller Account
✔ Authentication And API Calls Utilize OAuth 2.0
✔ Multi-Language Support
✔ Supports PHP 8.1 Back To PHP 7.4
✔ Supports WHMCS Themes "Six" And "Twenty-One"
✔ Supports WHMCS V8.10 Back To WHMCS V8.6
✔ Requires ionCube Loader V12 Or Later
✔ Easy Module Upgrade To Open Source Version

Installation and Authentication

This tutorial will show you how to successfully install and authenticate Google Analytics For WHMCS.

We will guide you step by step through the whole installation and authentication process.

1. Log in to our client area and download the module.
GAN 1.png
2. In the downloaded file you might find one or two packages that support different PHP versions.

In the most recent versions of the module, you will find only one package that supports PHP 7.2 and later.

PHP72 74.png
3. Extract the package and upload its content into the main WHMCS directory.

The content of the package to upload should look like this.

GAN 2.png
4. When you install Google Analytics For WHMCS for the first time, you have to rename the 'license_RENAME.php' file.

The file is located in 'modules/addons/googleanalytics/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'.

GAN 3.png
5. In order to configure your license key you have to edit the previously renamed 'license.php' file.

Enter your license key between the quotation marks as presented on the following screen. You can find your license key in our client area → 'My Products'.

GAN 4.png

API Configuration

6. Now you have to authenticate the module through setting up the API Access.

Create API Access in Google API Console. You can do it here → https://console.developers.google.com/apis/dashboard

7. After you have logged in, create a new project.
GAN 5.png
8. To proceed, go to 'Google APIs' under the 'Overview' tab.

Find 'Google Apps Reseller API' among the applications.

GAN 6 1.png
9. Now, you have to enable 'Google Apps Reseller API' as shown on the following screen.
GAN 7.png
10. Next, search for the 'Admin SDK' the same way you did it in step 9.
GAN 7 1.png
11. Enable 'Admin SDK' API.
GA 8.png
12. Finally, open the 'Explore and enable API' section, the API & Services page should open. Go to 'OAuth consent screen' under the 'Credentials' section.

Afterward, enter the mail address and application name that will be visible during your requests.
Here is a list of scopes required by the module to work properly:

  • admin.directory.user
  • apps.order
  • apps.order.readonly
  • userinfo.profile

Save changes through pressing the 'Save' button.

File:GAN 6.png
13. Then, switch to the 'Credentials' tab and add new credentials .
File:GAN 9.png
14. After you have done that, tick 'Web application'.

Next, enter your website URL into the 'Authorized JavaScript origins' field and correct path to 'oauth_callback.php' into the 'Authorized redirect URI' field.
Confirm changes by pressing 'Create'.

File:GAN 10.png
15. Well done! Now that you have filled in all the necessary details, you can proceed to authenticate Google Apps.
File:GAN 11.png


Configuration and Management

Configuration and management of Google Workspace For WHMCS is very intuitive. Read the below sections to see how easy it is.

Basic Configuration

Let us begin the process of module .....
File:GAN xxx.png


Configurable Options

In order to automatically generate configurable options, simply press the button marked on the screen.
File:GAN xx.png

Admin Area

Let us check your new product on the product page in admin area. It should look like on the screen below.
File:GAN xxx.png


Navigation
WHMCS Modules
WHMCS Widgets
Tools And Applications
Translations
cPanel Modules
General
FAQ
Community