SmartNews: 50M+ premium readers, 25+ mins daily engagement, zero bots. AI targeting finds your buyers. Run native ads that actually convert.

Useful code for pay per callers

ProfitOn

Captndave

Grand Guru
Joined
Jun 4, 2019
Messages
200
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