• I’ve got tracking set up so whenever I get a visitor my URLs end in ?keyword=”xxxxxx”.

    How can I dynamically insert the keywords into my posts/pages? I’ve been using php for dynamic keyword passthrough that I use for tracking on other php sites.

    I’ve used the php-exec plug-in and placed the following code between my <head></head> tags and it doesn’t seem to work correctly.

    <?php
    $var=$_GET[“keyword”];
    ?>

    But when I try to place the <?php echo “$var”; ?> in the post, it is not passed through. It doesn’t show up.

    I’ve also tried the following, which has also worked on other php sites, but it also does not work.

    <?php print($var); ?>

    This code seems to work on other php sites but not on WordPress. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamic Keyword Insertion?’ is closed to new replies.