Lead Capture Tools

Curtb2001
Participant

Acknowledge completed CTA with thank you and related content

SOLVE

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.

1 Accepted solution
Jsum
Solution
Key Advisor

Acknowledge completed CTA with thank you and related content

SOLVE

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.

View solution in original post

3 Replies 3
Jsum
Solution
Key Advisor

Acknowledge completed CTA with thank you and related content

SOLVE

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.

Curtb2001
Participant

Acknowledge completed CTA with thank you and related content

SOLVE

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

Thanks!

0 Upvotes
Phil_Vallender
Most Valuable Member | Diamond Partner
Most Valuable Member | Diamond Partner

Acknowledge completed CTA with thank you and related content

SOLVE

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?

Phil Vallender | HubSpot Website Agency
0 Upvotes