Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Dynamic Telephone Number Insertion

dynamic telephone number insertion

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

New User

5+ Year Member

joined:Sept 25, 2009
posts: 28
votes: 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)

Senior Member from ES 

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 11, 2003
posts: 1381
votes: 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)

Full Member

10+ Year Member

joined:Oct 9, 2007
votes: 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)

New User

5+ Year Member

joined:Sept 25, 2009
posts: 28
votes: 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.