Change Site Text Based on URL Tag?

2 replies
Hi Warriors

I had an idea for one of my marketing campaigns and need your tech insight. I know that many of you are experts in coding and I want to run this by you.

How would I do this on my website.

Let's say the text header of my website that shows on the top of the page is Jane Doe Dentistry. If someone visits Dentist.com, then they see the text that says Jane Doe Dentistry.

BUT

If they visit Dentist.com, then the text the would see is Donald Jones Dentistry. I know the tagging style is wrong in the URL, but you get the idea.

I think this is probably a simple concept, so I won't dive deeper unless you ask me to...

my question is this...

I don't need you to actually write out the script for me, unless you're bored. I just want to know what a fair amount of time is that this would take for a good coder to do. Are we talking 15-30 minutes, or are we talking about 1-5+ hours?

*note that the actual URL tagging will be handled by my CRM. The URL tags can be whatever you say they need to be. The part of the job I'm asking about is the part where the website reads the URL tag and changes the content on the website based on those URL tags.

Thanks Warriors
#based #change #dynamic #site #tag #tagging #tags #text #url
  • Profile picture of the author chaos69
    Depends what your using

    If your using php;

    if(isset($_GET['firstname']) && isset($_GET['lastname']))
    {
    $title = "Welcome to".$_GET['firstname']." ".$_GET['lastname']." dentist surgery";
    }
    else
    {
    $title = "Welcome to Jane Doe dentist surgery";
    }

    print "<h1>$title</h1>";


    You might want to check strlen and also un-html them as well, but you get the idea.
    Signature
    Best Ways To Make Money Online

    Eight bytes walk into a bar. The bartender asks, “Can I get you anything?”
    “Yeah,” reply the bytes. “Make us a double.”
    {{ DiscussionBoard.errors[1513887].message }}
  • Profile picture of the author silverbax
    Depends on the language, but the specific code to implement this on a single page should not take a coder more than 15-30 minutes. It's not a major task, so don't let someone tell you it's a huge job.

    BUT

    Please don't run off and hire someone, tell them you want dynamic text on a 300 page site, with a new database created and a fully scalable solution and then expect it in 30 minutes.

    Just sayin'
    {{ DiscussionBoard.errors[1516409].message }}

Trending Topics