Results 1 to 8 of 8

 

Thread: Can you put this dynamic keyword tag {keyword: xyz} in the landing page?

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Hi,

    In google and yahoo ppc, there have a feature where you can add dynamic keywords in our ads using the following tag {keyword: xyz}.

    I want to know, how can I do the same in my landing page? Is it possible? Is there any standard script where I can use?

    Thanks

  2. #2
    Registered User

    Status
    Online
    Join Date
    Jun 2006
    Posts
    628
    Thanks
    7
    Thanked 70 Times in 67 Posts
    Quote Originally Posted by internet-laptop View Post
    Hi,

    In google and yahoo ppc, there have a feature where you can add dynamic keywords in our ads using the following tag {keyword: xyz}.

    I want to know, how can I do the same in my landing page? Is it possible? Is there any standard script where I can use?

    Thanks
    Don't know about Yahoo but in Google you can stick the keyword in your destination url, eg http://you.com/page.asp?k={keyword}

    You could then echo the keyword on your landing page, eg in asp
    <%if request.querystring("k") <> "" then%>
    <h1><%=request.querystring("k")</h1> %>
    <%else%>
    <h1>default heading</h1>
    <%end if%>

  3. #3
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    and in php

    PHP Code:
    <?php echo $_GET["k"]; ?>
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Jun 2005
    Location
    Hampshire, UK
    Posts
    623
    Thanks
    9
    Thanked 7 Times in 7 Posts
    You just need to pass the keyword to your landing page. Your landing page then reads the keyword and replaces some dummy text on the landing page.

    Add this string to the end of your destination URL ?keyword={keyword}

    Read the incoming keyword. Example using ASP...

    Code:
     myKeyword = Request.Querystring("keyword")
    Replace the keyword on the page.

    Code:
    HTMLPage = Replace(HTMLPage,"xxxx",myKeyword)
    If the keyword is gadgets...
    <title>The xxxx page</title> becomes <title>The gadgets page</title>

  5. #5
    hrbs's Avatar
    Registered User

    Status
    Offline
    Join Date
    May 2006
    Location
    Barnsley
    Posts
    293
    Thanks
    2
    Thanked 53 Times in 25 Posts
    Hi
    Thanks for raising this topic.

    My php skills are non existent so, expanding on Dan's code, how can I set the dynamic keyword(s) in the title and h1 tags?

    Jonsp gives the asp code for h1 as:
    <%if request.querystring("k") <> "" then%>
    <h1><%=request.querystring("k")</h1> %>
    <%else%>
    <h1>default heading</h1>
    <%end if%>

    what is the equivalent php?
    How would I adapt it for a key phrase? eg paye registration

    Thanks

    Keith
    Fixed Fee Accountants and Tax, VAT, Payroll Specialists providing proactive, professional service to small businesses - HRBSaccountants.com

  6. #6
    Shane's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    sheffield - Worldwide Skiver
    Posts
    3,311
    Thanks
    12
    Thanked 70 Times in 34 Posts
    for php we use :

    PHP Code:
    <?php echo str_replace('-'' '$_GET['kw'])?>
    i.e on the page in the code we'd put it in a sentance such as
    PHP Code:
     the cheapest <?php echo str_replace('-'' '$_GET['kw'])?> you'll find
    And the link to the page should be like this :

    ....yoursite.co.uk/index.php?kw=keywordhere

    if you wish to have the keyword in the meta title and description then use these too in the head area:

    PHP Code:
    <meta name="description" content="<?php echo str_replace('-'' '$_GET['kw'])?>.">
    <meta name="keywords" content="<?php echo str_replace('-'' '$_GET['kw'])?>
    with other keywords/description it would look like this on the code side :

    PHP Code:
    <meta name="description" content="Get the best <?php echo str_replace('-'' '$_GET['kw'])?>.here">
    <meta name="keywords" content="red widget, green widget, <?php echo str_replace('-'' '$_GET['kw'])?>.here guaranteed">
    and anything after the "kw=" in the url will be injected into the page just where you'd like it in the page text, keywords and description

  7. #7
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    jsut a quick explanation of why shanes got a 'str_replace' in the php, its to take int oaccount key phrases rather than words.

    So if you had two words you could link to shanes page index.php?kw=hello-motto

    Then on the page it would be printed 'hello motto' as the replace changes the - to a space.
    Dan Morley
    alpharooms.com
    daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
    My Blog | Cheap Holidays

  8. #8
    Registered User

    Status
    Offline
    Join Date
    Oct 2006
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow! superb response. I already bookmarked this thread. Thanks for the advice. Greatly appreciated, is really saving me a lot of work



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Iceland - affiliate landing page
    By Alanya in forum Affiliate Window & buy.at
    Replies: 0
    Last Post: 28-02-05, 04:54 PM
  2. LuckyMe's New Landing Page
    By Lee_Owen in forum TradeDoubler
    Replies: 7
    Last Post: 09-08-04, 11:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2