I offer free URL analysis in a CTA-widget form on my blog.
“Funnel”
1. visitors fill in their website URL and click “send”
2. redirects to new page (collect email)
3. redirects to a thank you page
On the thank you page I want to redirect the visitor back to that specific blog post they came from. Is it possible?
Now I use this code:
<?php if ( is_page( Thank-You-Page ID ) ) : ?>
<META http-equiv=”refresh” content=”2;URL=https://www.domain.com/blog“>
<?php endif; ?>
I want this function:
<?php if ( is_page( PAGE-ID ) ) : ?>
<META http-equiv=”refresh” content=”2;URL=https://www.domain.com/blog/blog-post-where-visitor-used-the-CTA-form“>
<?php endif; ?>
Hmm, when I think about it I only need to redirect them 2 steps back in their browser. How? =)