ClickEventContactAssociator Drill Down 2

About 10% of our new contacts that are created from our registration process show up as:

Original Traffic Source: Offline Sources
Drill Down 1: ANALYTICS
Drill Down 2: ClickEventContactAssociator

I’m at a loss on how or why this occurs and googling didn’t really get me very far.

Our registration process flow is like this:

  1. Parent Page with Non-hubspot form in an iframe (not ideal I know)
  2. Custom Events triggered from each button click in the non-hubspot form in the iframe.
  3. Hubspot API Form call upon completion of registration to an actual Hubspot form.
  4. Standard Non-hubspot form processing

I know this setup is a odd, its a holdover from some ongoing attribution work we’ve been doing, and I’m confident that our setup is causing this issue, but I would like to actually pin down the exact culprit if possible.

Any help, thoughts, experiments to try would be appreciated.

Hey @MJohnson59,

Welcome to the Community!

It could be worth checking out this thread, which works through similar setup : Original source set to “Offline sources”

I’d also like to tag in some of our Top Contributors to see if they’ve run into this before:

Hey @Anton, @Evaldas, @lstepany do you have any suggestions for @MJohnson59 on this?

Thanks in advance!

Sam, Community Manager

Hey @MJohnson59

Do you have HubSpot tracking code installed on your website? And does your forms API call pass the “hutk” parameter?

Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.

Yes the hubspot tracking cookie is installed and the forms API passes the hutk parameter if available.

@EugeneAtKiwi Yes the hubspot tracking cookie is installed and the forms API passes the hutk parameter if available.

Hey @MJohnson59, thanks for getting back to us and thanks @EugeneAtKiwi for your help!

@MJohnson59, can you please check the following:

  • Confirm the hutk value being passed is actually valid (not null/empty) for the affected contacts

  • Since your form is in an iframe, the hubspotutk cookie may be blocked by third-party cookie restrictions in some browsers, verify the cookie is readable from the parent page context before passing it to the API

  • Ensure context.pageUri is also being passed, as this helps HubSpot resolve the session

Here are some resources for reference:

Hey @EugeneAtKiwi, @zach_threadint and @SteveHTM do you have suggestions to help @MJohnson59, please?

Thanks so much and have a brilliant day!
Bérangère

This post was created with the assistance of AI tools

@Berangere Good catch about the iframe.

I’d add logs everywhere to identify when/where/why the cookie value gets lost. Could be ad/script blocker, could be an iframe issue, could be cookie banner-related (e.g., if HubSpot’s cookie banner is used and visitor doesn’t consent to analytics cookies).

Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.

@EugeneAtKiwi Thanks! so to clarify, your thought is that this original traffic source we are seeing is because for some reason the cookie is getting gobbled up/lost along the way?

@MJohnson59

My best guess rn is that the value gets lost even before the API call is made. The visitor is not identified properly, then your custom click handler kicks in and fills the gap in data, becoming the “original traffic source,” so I’d look into what might be preventing the traffic source from being properly identified after the page load started but before the custom event is triggered on a button click.

Hey @MJohnson59 , I’ve seen this a few times, and in most cases it comes down to how HubSpot is able (or unable) to associate the visitor session with the contact creation.

Since you’re submitting via the Forms API after a custom registration flow inside an iframe, there’s a good chance the original browser session or tracking context isn’t being carried over consistently. When that happens, HubSpot can fall back to Offline Sources > ANALYTICS > ClickEventContactAssociator during contact association.

A few things I’d check:

  • Whether the hutk cookie is being passed in the Forms API submission.
  • If the HubSpot tracking code is present and firing correctly on the parent page (and any relevant iframe context).
  • Whether the custom events or API submission are creating any race conditions where the contact is associated after the original session context is lost.

Since it’s only happening to ~10% of contacts, I’d also compare a “good” vs. “bad” submission in the Network tab to see if the tracking context differs. That usually points to the culprit pretty quickly.