How do we set up RUID in hubspot

Zuheb
Member

Hello there, 


We are trying to capture a cookie value named "ruid" as a hidden field in all our forms though the value is getting populated on the website it is not getting captured in the custom field, please suggest how to proceed with it. 

The ruid is being populated as a cookie value. A random unique cookie value gets assigned for users when they visit the site (attaching screenshot).
 
Please note our intention is not to change any current setup which captures the UTM values from the query strings but additionally we want the capture the ruid value as well.

Do we need to create a hidden field in Hubspot form or customize the Js in the hubspot tracking code. 
RUID cookie value.png
We are doing this to track user-level data in Google analytics for in-depth user behavior analysis. 
 
This is one of the forms where we have created the RUID field. https://app.hubspot.com/forms/2369873/editor/f8514c43-e9d5-4211-b386-0e46f3f932bf/edit/form
 
 
This article will provide more background on what we're trying to do. https://www.portent.com/blog/analytics/integrating-google-analytics-hubspot.htm 
 
Would be great if we can get some assistance on the implementation. 
 
Thanks,
Zuheb. 
5 Replies 5
dennisedson
Community Manager

hey @Zuheb 

Wonder if @Kevin-C or @jpsanchez  have some suggestions here.

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
Kevin-C
Recognized Expert | Partner

Thank @dennisedson 

 

Hey @Zuheb 

 

I didn't have the time to dig it up but I know @amwilie has a solution for this somewhere on the boards.

 

I also answered something similar recently. This Pen has some code that you can modify to populate a hidden field.

Zuheb
Member

Can someone help me here? 

0 Upvotes
dennisedson
Community Manager

@amwilie , do you know what post @Kevin-C  was talking about above?

@Zuheb , was @Kevin-C 's pen of any help?

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
amwilie
Key Advisor | Elite Partner

@dennisedson No idea 😅 and don't have a way to look through all my posts. Here's one I found from someone else though on how to send cookie information into a Hubspot form, @Zuheb  :

 

https://community.hubspot.com/t5/APIs-Integrations/Capture-cookie-info-with-hidden-form-fields/td-p/...

border

Alyssa Wilie

Web Developer at LyntonWeb

If this answer solved your question, please mark it as the solution!