WordPress.org

Ready to get started?Download WordPress

Forums

Google Content Experiments
[resolved] Duplicate posts (4 posts)

  1. Daan Zuijderland
    Member
    Posted 1 year ago #

    Hi,

    Your plugin inserts the google code just fine, but.. I have a problem.

    I created an experiment with two pages. The pages have the same title ('Title') but different content ('Text A' and 'Text B'). The code works and Google serves me version B. The problem I have is that my 'Recent posts' and category pages now show two similar posts, and visitors can choose which version they want. Besides that is looks stupid, it also ruins the experiment.

    Is this something your plugin was intended to deal with, or should I look for a workaround?

    Thanks,

    Daan

    http://wordpress.org/extend/plugins/google-content-experiments/

  2. glennm
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Daan,

    My plugin is just to insert the experiment code on the correct place.

    A solution might be to create two "pages" instead of two posts. That way I don't think they don't show up under recent posts. To do this, the content of your page should be suitable for a page, otherwise this trick won't work.

    Please let me know if you managed to solve this issue :)

    Thanks!

    Glenn

  3. Daan Zuijderland
    Member
    Posted 1 year ago #

    Hi Glenn,

    Thanks for the reply. I tried to solve it with the 'WP Hide Post' plugin. That solves everything but the recent posts list. Creating pages is not really a solution. Maybe I'll find a better plugin.

    I did encounter another issue: the category pages show full posts or (in my case) excerpts of posts. When a post with Google Experiment code loads, the script will redirect the visitor away from the category overview to the experiment page.. That should be solvable with some PHP like if($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']) == post_slug. What are your thoughts on this?

    Cheers,

    Daan

  4. glennm
    Member
    Plugin Author

    Posted 1 year ago #

    Daan,

    Thank you for reporting this issue.
    I've released version 1.0.1 of my plugin which should solve the issue with the category pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.