Commit 61a06d9c authored by Rich Gerdes's avatar Rich Gerdes
Browse files

Issue #3200926 by rondog469, drupalninja99, juanjoespi: Couldn’t complete the...

Issue #3200926 by rondog469, drupalninja99, juanjoespi: Couldn’t complete the connection Insufficient scopes were provided. Please contact the integrator
parent 7e255af5
Loading
Loading
Loading
Loading

README.md

0 → 100644
+36 −0
Original line number Diff line number Diff line
# Hubspot

This module provides a Hubspot API integration for Drupal.

## Features

The base functionality of this module is to provide the hubspot API code to
enable Drupal to send data to HubSpot. This project also provides integration
with the [Webform](https://drupal.org/project/webform) module to handle the
upload of webform data to hubspot.

## Dependencies

This project leverages the official [Hubspot API Client](https://github.com/HubSpot/hubspot-php)
for connecting to HubSpot.

## Setup

To enable the module, download and enable to module as with any other Drupal
module.

Once enabled, navigate to the HubSpot module config (`admin/config/services/hubspot`)
and enter your api integration settings. If you don't have an existing hubspot
app, create a new app with the instructions below. You will need to provide the
`oauth` scope to connect your site and additionally the `forms` and `contacts`
scopes if you wish to use the Webform functionality. If you are extending this
module, in order to use the api client service, please and any additional api
scopes in the HubSpot app config and Drupal module settings as required.

https://developers.hubspot.com/docs/api/developer-tools-overview

## Support

Please submit any bugs or features requests to the HubSpot module page on Drupal.org.

https://drupal.org/project/hubspot

README.txt

deleted100644 → 0
+0 −86
Original line number Diff line number Diff line
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Installation
 * Configuration
 * Maintainers

INTRODUCTION
------------


INSTALLATION
--------------------------

Install the module like any other Drupal module.

You can find detailed help on how to use HubSpot with Webforms in this
module's Help page in the Drupal administrator interface. Head to Help and
select "HubSpot Drupal integration" for complete instructions.

Extended documentation, with instructions on using HubSpot's Salesforce
integration and details on automated receipt emails, is available in the Drupal
handbook pages:

http://drupal.org/node/1195370


CONFIGURATION
--------------------------

- For Contact form submission
1.GO to hubspot site and  Go to contacts -> Forms(can use test accounts)
2. Add fields in the form.
In Drupal site:
* Create a new webform OR use exisiting contact webform.
* Add fields in the contact form.
* Create a new node of webform type created above.
* Go to admin/structure/webform/manage/{webform_type}/handlers.
    eg : admin/structure/webform/manage/test_1/handlers
* Go to admin/structure/webform/manage/ i.e structure => webforms => your
webform type (eg: contact) => handler tab
(admin/structure/webform/manage/contact/handlers)
* Add hubspot Webform handler(Mandatory for contact form submissions).
* Map form fields in the drupal form to hubspot form on configuration page.

* To view your form submissions click on the link -
https://app.hubspot.com/l/forms

-Get Hubspot tracking code:
Login to hubspot
Click setting in the menu
click installation vertical tab and copy the code.

- For Web analytics
1. Enable your tracking code in the configuraton
2. Go to https://app.hubspot.com/reports-dashboard/{portalid}/web-analytics
(Your portal id).
3. There is a list of analysis report like session, Traffic metrics etc
available for your site.


- Lead Flow
* Login to hubspot account-> GO to marketing profile and in the navigation
click on Lead Flows.
* Click on Create Lead Flow button -> Add the lead flow as desired.
* To Enable Lead Flow in drupal site, go to admin configuration form and check
 Tracking Code on.

* View unique contacts -
https://app.hubspot.com/sales/{portal_id}/contacts/list/view/all/?

Maintainers
---------------------

nehajyoti (Jyoti Bohra)


Sponsorship
-----------

This project is sponsored by Digett, a Drupal-friendly San Antonio web design
company with a focus on inbound marketing. Need additional features or custom
styling? Contact us.
  http://www.digett.com/
+5 −0
Original line number Diff line number Diff line
hubspot_debug_on: 0
tracking_code_on: 0
hubspot_portal_id: ''
hubspot_client_id: ''
hubspot_client_secret: ''
hubspot_scope: 'contacts forms oauth'
hubspot_debug_email: ''