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

  1. Daan Zuijderland
    Posted 3 years ago #


    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?




  2. glennm
    Plugin Author

    Posted 3 years 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 :)



  3. Daan Zuijderland
    Posted 3 years 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?



  4. glennm
    Plugin Author

    Posted 3 years ago #


    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

  • Google Content Experiments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.