Tracking UTM parameters from landing page to form page

We are a/b testing content on social where both will point to a landing page with a CTA button that links to a form page. The a/b test is of different content, but both will link to the same landing page which has the same form. I made a tracking link of the landing page for both a/b pieces of content but it does not seem to be tracking over to form submissions. Any assistance?

Based on what you are telling us we don’t have enough information to understand what could be going wrong. Are your hidden parameters from the tracking links coming through empty on the form submission?

In this situation it might be best to share the page(s) in question so we can see first hand your pages and potentially see where the data/tracking is dropping off and preventing you from getting the tracking you are looking for.

Thank you for replying. Here is some more info:

The form has hidden utm parameter fields. The journey for a lead to form submission is: view content a or b, click link to landing page, click CTA to form, submit form. There is one form and one landing page, and I made a tracking link for both types of content. When I click on the tracking link and then eventually submit the form, those utm parameters do not show in the form submission analytics.

Hi @MDiaz37

As I mentioned in my initial post your additional step from CTA to form is stripping the the UTM parameters out, your flow should be:

view content a/b → landing page → form submission

If you are a/b testing I assume you have different utm parameters in both tracking links which in turn will tell you which content drove more visits and submissions.

Frank

I’m looking for a solution to the same problem.

We don’t want to keep passing the UTM params around, but store them in session storage and make hubspot read from them, or at least from cookies. Or maybe Params → Cookies, the first that has it set?

How can I do that.

Hi @MDiaz37

Silly question, but why the extra step from landing page with CTA to another page with a form on it.

Usually the form is on the landing page, it’s a key feature of a landing page to have a form an convert people there.

Also when you say the tracking link does not work, where exactly are you looking for these UTM parameters? If you try saving them in hidden properties or read them out of the tracking URL, that needs to happen on the first page the land on.

Frank

Hello,

This is how they wanted it set up, so I am in need of the best way to track form submissions by which content type. They wanted UTM parameters to track so I was not sure where to apply them.

Yeah, HubSpot only captures UTM parameters if the visitor completes the form on the exact same page they initially landed on with the UTMs. When someone clicks your CTA button and navigates from the landing page to the form page, those UTM parameters get lost from the URL.

There are a few ways to solve this.

1. You could write custom JavaScript to store the UTM parameters when someone first lands on your site and then pass them through when they submit the form on the other page. But that requires ongoing maintenance as browsers update and your site structure changes.

2. You could use tools like Attributer.io to capture the UTMs with each form submission. They capture the UTM parameters (plus other attribution data like the Google Click ID, Facebook CLick ID, etc) when someone first arrives, store them in a cookie, and then write them into hidden fields on your HubSpot forms regardless of which page the form gets submitted on. This means your A/B test data would flow through properly even when people navigate between pages.

3. You could also restructure to have the form embedded directly on the landing page, but that might not work for your A/B testing setup.

Quick note: I used an AI assistant to help me write this response better than I could write it myself, but the recommendations are based on my experience and I’ve reviewed everything before posting.