So there are people who access my website directly (not thru the tracking link I got with Voluum), thus they are not able to click the links and I can’t see them as a part of my stats.
How can I redirect users who don’t have a /?voluumdata=BASE64... URL parameter to a tracked URL, and to have a different redirect for each blog post?

I was testing and looking for a plugin / .htaccess trick for hours but nothing seemed to help.

Edit: I found a solution that I was certain is going to work but for some reason it didn’t:

[insert_php]

if(empty($_GET['voluumdata'])) 
{ 
  header('Location: REDIRECT_URL');
  exit; 
}
[/insert_php]

Also tried:

[insert_php]
if(!isset($_GET['voluumdata'])) 
{ 
  header('Location: REDIRECT_URL');
  exit; 
}
[/insert_php]

Both just break the page loading proccess.

Read more here: WordPress redirect if no GET parameter in the URL


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: