1. Home
  2. Knowledge Base
  3. Extensions
  4. How to set up Google Drive Extension

How to set up Google Drive Extension

This extension lets you use the files hosted on your Google Drive as Download Monitor files. If you want to take advantage of the Google Drive Extension, you’ll need first to establish a few things.


  • Unzip and upload the plugin’s folder to your /wp-content/plugins/ directory
  • Activate the extension through the ‘Plugins’ menu in WordPress

For more information on installing and activating Download Monitor see here.


  1. Go to https://console.developers.google.com/ and sign in with your Google account.
  2. In the top bar, click Select a project > New Project.
  3. You’ll be redirected to a New Project page. Name your project and then click Create.
  4. Make sure you have selected your project in the top bar.
  5. Type Google Drive API in the search bar. When you find the API, click on it.
  6. Enable the Google Drive API to be able to connect Google Drive to your website.
  7. Go to Credentials.
  8. Click on Configure Consent Screen.
  9. Choose the user type. In this case, you’ll have to tick the External box and click on Create.
  10. Add an App Name, User support email, and Developer contact information. Then, click Save & Continue.

  11. Click Save&Continue. You’ll be redirected to your Dashboard.
  12. After enabling the Google Drive API, click on Credentials > Create Credentials > OAuth client ID.
  13. In this step, you need to add more information:
    – Choose Application Type: Web Application
    – Name
    Authorized JavaScript origins: https://yourdomain.com
    Authorized redirect URIs: https://yourdomain.com/wp-admin/edit.php?post_type=dlm_download&page=download-monitor-settings&tab=external_hosting&action=oauth_redirect

    Note: You can find the Authorized Javascript origins and Authorized redirect URIs which need to be added here by going to your WordPress dashboard > Downloads > Settings > External Hosting > Google Drive > copy them from there.

    A window with Your Client ID and Your Client Secret will appear so please make sure to copy them because you will need them later.
  14. Go to your Google Console > OAuth consent screen > click on PUBLISH APP.
  15. Go to your WordPress Dashboard > Downloads > Settings > External Hosting. Here you’ll see two fields that ask you to add the client ID and client secret key.
  16. Copy the keys created earlier and paste them into these fields.
  17. Click Save Changes and then Grant Access. You’ll be redirected to sign in to your Google account.
  18. You will need to verify this app. Click on Advanced > Go to yourdomain.com (unsafe)
  19. You will need to grant access to your Google Account

You can now start using your Google Drive files on your website.


To add files from Google Drive to your website with Download Monitor, go to your WordPress Dashboard > Downloads > Add New > Add File and click on Browse Google Drive.

Then, you can start looking through the files and adding them to the Download Monitor.

Was this article helpful?

Related Articles

Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?