Wordpress - associating authenticated users with Contact

SOLVE
Visitor

Hello,

 

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.

 

 

 

thanks,

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Solution
Visitor

I believe I may have just answered my own question - https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor seems to be the best route forward

View solution in original post

1 Reply 1
Solution
Visitor

I believe I may have just answered my own question - https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor seems to be the best route forward

View solution in original post