homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Dynamic Telephone Number Insertion
dynamic telephone number insertion

 1:15 pm on Aug 10, 2011 (gmt 0)


been looking around for a possibility to utilize dynamic telephone number insertion for my adwords campaign but I couldn't find a workable solution to dyanmically show telephone numbers on my site.

for example:

If visitor comes to my site through campaign A, a cookie is saved on his computer and, depending on this data, a telephone number is displayed. In this case telephone number A.

Does anyone know a piece of software that already does this? I can imagine, that it wouldn't be too difficult to set up.




 1:17 pm on Aug 11, 2011 (gmt 0)

Can you not just process your content before it is sent to the browser and replace/add the required telephone number?

You are obviously using some PHP solution for your site?


 5:13 am on Aug 12, 2011 (gmt 0)

If Adwords ref data -> campaign A
setcookie("Campaign", "a");


if isset($_COOKIE["Campaign"]) {
if ($_COOKIE["Campaign"] == "a") echo "Tel 123";
else echo "Tel 987";
else echo "Don't bug us";


 10:07 am on Aug 12, 2011 (gmt 0)

@mipapage you are right, badbadmonkey showed me the solution.

@badbadmonkey, it didn't work at first but I managed to get it to work.

Thanks a lot.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved