# Wordpress - associating authenticated users with Contact

**URL:** <https://community.hubspot.com/t/wordpress-associating-authenticated-users-with-contact/30099>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [January 12, 2021, 9:46pm UTC](https://community.hubspot.com/t/wordpress-associating-authenticated-users-with-contact/30099 "2021-01-12T21:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSDigital](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rsdigital/32/41549_2.png) [@RSDigital](https://community.hubspot.com/u/RSDigital)\
**Post date:** [January 12, 2021, 9:46pm UTC](https://community.hubspot.com/t/wordpress-associating-authenticated-users-with-contact/30099/1 "2021-01-12T21:46:42Z")

</div>

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 [Accounts Dashboard | HubSpot](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,

---

<div class="post-metadata">

**Author:** ![RSDigital](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rsdigital/32/41549_2.png) [@RSDigital](https://community.hubspot.com/u/RSDigital)\
**Post date:** [January 13, 2021, 1:34pm UTC](https://community.hubspot.com/t/wordpress-associating-authenticated-users-with-contact/30099/2 "2021-01-13T13:34:55Z")

</div>

I believe I may have just answered my own question - [https://legacydocs.hubspot.com/docs/methods/tracking\_code\_api/identify\_visitor](https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor) seems to be the best route forward
