Useful code for pay per callers

Galaksion Contest

Captndave

Super Contributor
Joined
Jun 4, 2019
Messages
176
So I am using push ads but most companies won't allow you to use a phone number for the link. I came up with a script that will have the dialer open with your number

first create an /index.php file
insert this code nothing else:

PHP:
<?php

if(isset($_GET['tel']) && $_GET['tel'] != "")

{

     $tel = $_GET['tel'];

     header("Location: tel://$tel");

}

die();

?>

So, when I load mydomain.com/?tel=155512345678 the browser starts a call to the number passed as argument.

Hope this will help
 
Last edited by a moderator:
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top