开发者

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

开发者 https://www.devze.com 2023-02-13 10:24 出处:网络
I am working on a project where I should display different contact telephone number based on the referrer or google adword .

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

精彩评论

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