CTA - URL with query string

I’d like to auto populate fields when a customer clicks on a CTA from an email to update their communication preferences on a hubspot landing page. I used https://knowledge.hubspot.com/articles/kcs_article/forms/can-i-auto-populate-form-fields-through-a-query-string to create the following testing string:

https://info.pitsco.com/communicationprefs?firstname={{contact.firstname}}&lastname={{contact.lastname}}&email={{contact.email}}&the_pitsco_network_e_newsletter={{contact.the_pitsco_network_e_newsletter}}&opted_in_of_email_pitsco_blog_instant_settings={{contact.opted_in_of_email_pitsco_blog_instant_settings}}&pitsco_enews_subscription={{contact.pitsco_enews_subscription}}&tetrix_e_newsletter_subscription={{contact.tetrix_e_newsletter_subscription}}

But when I paste this in the CTA URL and save I get the error, "Something went wrong. The changes to your CTA were not saved. Please choose a valid redirect URL. (I cloned another CTA, and was updating for this new CTA).

The only thing I can think of is, I’m selecting External website URL, since the HubSpot page or blog post option is a drop down and doesn’t allow for the custom string.

So, is the only way to get auto-populated fields on a page from an email to place a button image and use the hyperlink option? I’d like to have the CTA tracking, so hoping I’m just missing something in the settings.:frowning:

You are correct. HubSpot CTAs cannot be modified in the fashion you’ve described. Your options are to use either linked text or a linked image (e.g., button image).

Note: While you won’t have CTA-tracking, all links in email are tracked, so … no loss there.

Help answer your question? If so, remember to accept this solution now.

Best,
Frank

Author, the Perfect HubSpot Series




MFrankJohnson.com | Connect on LinkedIn

Help find posts quickly … accept this solution now.

Darn! Thanks for resolving.