开发者

Displaying different contact number on a website depending on the referrer or google adwords

I am working on a project where I should display different contact telephone number based on the referrer or google adword .

Is it possible to know which adword the visitor searched to reach the website and the referrer?

All the numbers are based in a database. Is there any sim开发者_运维技巧ple JScript to do this?


Sorry for the late reply...

A simple solution is to pass the phone number through from google in the link that they visit.

Then using PHP on the website

<?php
$_SESSION['_phone'] = 'default number';
if (!empty($_GET['phone'])) {
  $_SESSION['_phone'] = $_GET['phone'];
}
?>

<p><?php echo $_SESSION['_phone'];?></p>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜