Download the PHP package focuscanada/hubspot-custom-id without Composer
On this page you can find all versions of the php package focuscanada/hubspot-custom-id. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download focuscanada/hubspot-custom-id
More information about focuscanada/hubspot-custom-id
Files in focuscanada/hubspot-custom-id
Package hubspot-custom-id
Short Description Sync a Custom ID property to Hubspot contacts
License MIT
Informations about the package hubspot-custom-id
Hubspot custom ID property sync script
You find you need to do anything fancy but there is no way to uniquely identify users apart from their email address? Well here is a hokey-pokey work-around.
What this does is just base64 encodes the vid
property to a custom property that we can actually use.
I don't like the idea of directly exposing the vid. So this obfuscates it slightly. However, it is still easy
to decode in pretty much any programming language as far as I am aware of.
One example of a use case is adding it as query string in a url from a link in an email. We can then use it to identify the user that clicked the email on the target page.
Install
Using composer:
Usage
1. Create a new contact property for the custom ID
Name it something like custom_id
, and make it a single line text field.
2. Create a new smart list
You will need to create a new smart list that contains only contacts where the custom_id
property is unknown
.
Remember the ID of that list. (It should be the number as the last component of the url when editing the list)
3. Use it (example)
4. Make a workflow (optional)
If you don't want it to run just as something like a cron job, or manually. Then you can deploy it to a server somewhere and create a workflow to access your script as a webhook.
Credits
- The idea came from these instructions on hubhacker.com.
- The original idea thread on the Hubspot forums.
- Uses ryanwinchester/hubspot-php for the API.