WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating an information landing page that I intend to cold email out to a bunch of potential clients. I need to track customers that not only open the email (I know how to do that) but track which email recipients actually navigated to the landing page.

In a custom web application I would do this by sending them a link to the landing page that's something like www.site.com/landing?rec=my@email.com, and upon seeing the querystring I would put that in the database.

Are there any wordpress plugins to do something like that?

share|improve this question
used all my votes today. remember me to come back and upvote the Q. – kaiser Feb 20 '12 at 19:48

WP is not really interested in what you add to the url string. But you could extract the url with native php functions and add your parts to the global wp_query; object using add_query_arg(). Then you can receive it via get_query_var() anywhere you need it.

You could also use a hook to do the adding-job:

function wpse42947_add_query_vars( $vars )
    $vars[] = "WHATEVER";
    return $vars ;
// hook add_query_vars function into query_vars
add_filter( 'query_vars', 'wpse42947_add_query_vars' );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.