If a user was linked to an Item inside your Hub through a URL that included a query string parameter, this data will also be passed over to the applicable field in HubSpot when a Form CTA is submitted during the same session.
This is a very useful feature for tracking users who came from a specific campaign, social media platform, geography, etc.
For example, take the URL with the added querystring: http://hub.uberflip.com/h/?location=canada. In this case, the text ?location=canada has been manually added to the back of the Hub Item or Hub URL that might be publicly shared with users through an email or social media campaign, for instance.
In this case, upon the submission of a Form CTA during the same session that the user came to the Hub via this URL, we will also try to update the field “location” in HubSpot with the result “canada”.
Finding the Right Field Name for Your Query String in HubSpot
To find the right field name in HubSpot for your query string parameter:
(1) Hover over Contacts in the top menu;
(2) Click on Contact Settings in the dropdown menu; and
(3) Find the property you are looking for.
The “Name” is the value that we are looking for. For example, in the below screenshot, if we wished to use a query string parameter for the field "Country", the Name would be "country" (with lower case 'c').