Acknowledge completed CTA with thank you and related content

We have partnerships with other organizations and we have some CTAs that link to actions that are completed on their website - registration for courses, conferences, webinars, etc.

I have set the redirect to open in a new window so the visitor can return to explore our website further after they complete this other registration.

I’d also like to be able to redirect them to a thank you page that also offers a few interesting content options related to the course or conference they just registered for.

Hi @Curtb2001

As you’ve discovered, there’s no way to do this natively with a HubSpot CTA, which only support one destination at a time.

It may be possible to modify the CTA embed code, presumably using js, to perform both actions on click.

Perhaps @Jsum could tell us if this is even possible?

Hey guys,

Something like this might work:

<a href="#" class="yourlink">Click Here</a>

$('a.yourlink').click(function(e) {
 var href = $(this).attr("href");
 e.preventDefault();
 window.open(href);
 window.open('http://website.com');
});

This removes the default function of the link then fires window.open() twice, the first to the href value of the link and the second can go where ever. I don’t know if this interferes with tracking though.

I’ll have to give that a test and see what happens.

Thanks!