Acknowledge completed CTA with thank you and related content

SOLVE
Curtb2001
Participant

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

Accepted Solutions
Jsum
Solution
Key Advisor

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
Phil_Vallender
Most Valuable Member | Diamond Partner

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 | Inbound marketing for B2B technology companies
0 Upvotes
Jsum
Solution
Key Advisor

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

Curtb2001
Participant

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

Thanks!

0 Upvotes