Leaky Paywall - Hubspot

The Leaky Paywall - Hubspot extension allows you to automatically add new Leaky Paywall subscribers to your Hubspot account.  The new subscriber is added as a contact with the first name, last name, and email being added to the contact.

Any gift recipients will also be added as a contact after the gift subscription has been redeemed.

Initial Setup

After you install the Leaky Paywall - Hubspot extension, go to Leaky Paywall > Settings > General > Hubspot in your WP admin. 

Enter your access token from your Hubspot account to connect your account.  Learn how to find your Access Token.

Send Additional Data to Hubspot

By default, the extension will send the first name, last name, and email of the subscriber.  Often you will want to send additional data to Hubspot after a successful registration.  

First, you need to create the custom property in your Hubspot contact properties. You will need the internal name provided by Hubspot after you create the custom property.

Next, use the  leaky_paywall_hubspot_create_contact_data filter to send the data collected during registration to Hubspot. The following gist shows how to send data to a property named level_id in Hubspot.

Please note that the internal name must match exactly what is shown by Hubspot, including spaces and capitalization.

If you want to update the level_id property in Hubspot when a user's subscription level changes, you can use the following gist.

Update Data In Hubspot

Sometimes you may want to update data in Hubspot, for example If you are using the free registration flow. The following gist shows how to update the first name, last name, and level id of a subscriber after the subscriber is updated.  This happens when a free user signs up for a paid level.

Still need help? Contact Us Contact Us