Wordpress - associating authenticated users with ContactSOLVE
2 weeks ago
I'm in the process of developing a site that utilizes the HubSpot Wordpress plugin. Client is planning on using the Starter Growth Suite. In past projects this has been great for viewing a contact's pageviews once they've filled out an HS form.
What I'm wondering - say a user comes to the site and registers for an account, without filling out an HS-form data.
- I know I can programmatically create that record as a contact in hubspot.
- But is there a way for me to tell the hubspot plugin that this logged in user is associated with contact X, so that we can immediately capture page views? So essentially https://developers.hubspot.com/docs/api/events/tracking-code triggering this manually to set those cookies.
- Or do I need to send these over the API manually with some custom code? If I even can - I don't see an endpoint to perform this action.
Solved! Go to Solution.