For a site with 200 pages that are kinda similar, partially random keywords?

Discussion in 'Search Engine Optimization' started by rajmv, May 31, 2012.

?

Is this going to get you lower or higher rankings?

  1. higher

    1 vote(s)
    100.0%
  2. lower

    0 vote(s)
    0.0%
  1. rajmv

    rajmv
    Expand Collapse
    Junior Member

    Joined:
    May 31, 2012
    Messages:
    3
    Likes Received:
    0
    Hi people.

    I've got plenty of experience with (web)programming, but very little with SEO.

    I run a tarot web game site (http://tarot-with-spirits.com) where I have 192 decks and 9 reading types at the moment, bringing the total number of unique URLs to at least (192*9) URLs. I also have an option for "Major Arcana cards only", so you could double the number of unique URLs even I think.

    Point is, with this many unique URLs (that actually are crawled, my opensourced framework (http://mediabeez.ws) takes care of that), there's a unique opportunity to increase the number of keywords the site operates with..

    I thought I'd share my code, it's short anyway, and ask if you people think that this is a good strategy, or something likely to get a site that uses it penalized..?

    <meta name="keywords" content="<?php echo getKeywords($_SERVER['REQUEST_URI']);?>">

    function getKeywords ($url) {
    $urlData = getKeywordsURLdata();
    if (array_key_exists($url, $urlData)) {
    return $urlData[$url];
    } else {
    $k = getNewKeywords();
    $urlData[$url] = $k;
    getKeywordsURLdataWrite($urlData);
    return $k;
    }
    }

    function getKeywordsURLdataWrite($urlData) {
    $fp = dirname(__FILE__).'/keywords.urls.json';
    file_put_contents ($fp, json_encode($urlData));
    }

    function getKeywordsURLdata () {
    $r = array();
    $fp = dirname(__FILE__).'/keywords.urls.json';
    if (file_exists($fp)) {
    $er = error_reporting(0);
    $r = json_decode (file_get_contents($fp), true);
    error_reporting($er);
    }
    return $r;
    }

    function getNewKeywords () {
    $keywords = array (
    'always' => array ('abc','def'),
    'random' => array('ghi', 'jkl', 'mno', 'pqr')
    );
    $result = join (', ', $keywords['always']);
    $numKeywords = rand (18,20);
    $numRandomKeywords = $numKeywords - count($keywords['always']);
    $randomKeywordsAdded = array();
    for ($i=0; $i<=$numRandomKeywords; $i++) {
    $randomKeyword = rand (0, count($keywords['random'])-1);
    if (count($randomKeywordsAdded) >= count($keywords['random'])) break;
    while (array_search($keywords['random'][$randomKeyword], $randomKeywordsAdded)!==false) $randomKeyword = rand (0, count($keywords['random'])-1);
    $result .= ', '.$keywords['random'][$randomKeyword];
    $randomKeywordsAdded[] = $keywords['random'][$randomKeyword];
    }
    return $result;
    }
     
  2. scorpion

    scorpion
    Expand Collapse
    Junior Member

    Joined:
    May 31, 2012
    Messages:
    8
    Likes Received:
    1
    is your script randoming the keyword? If so, it is not a good idea as the keyword may be unrelated to the content of the page. It is not congruent.
     
  3. rajmv

    rajmv
    Expand Collapse
    Junior Member

    Joined:
    May 31, 2012
    Messages:
    3
    Likes Received:
    0
    Actually on this site it would be congruent.
    And it's also serving the same kewords every time per unique subURL.
     
  4. scorpion

    scorpion
    Expand Collapse
    Junior Member

    Joined:
    May 31, 2012
    Messages:
    8
    Likes Received:
    1
    have a different keyword for different page.
     
  5. rajmv

    rajmv
    Expand Collapse
    Junior Member

    Joined:
    May 31, 2012
    Messages:
    3
    Likes Received:
    0
    A different set of keywords per unique sub-url, yep.
    And you can specify which keywords will end up on all pages.
     
  6. mariajhonson

    mariajhonson
    Expand Collapse
    Junior Member

    Joined:
    Oct 19, 2012
    Messages:
    278
    Likes Received:
    4
    I don't have any knowledge about such script. But I think that it is useful.
     

Share This Page