Dynamic phone number swap from a redirected URL

[ad_1]

I have a bit of a complex situation and was wondering if anyone can think of a way this would be possible.

My client wants to put a new website name on one of their trucks that is more on par with the service they are trying to specifically push that redirects to a specific page on their website related to that service.

Is there a way to have WordPress swap out the phone number displayed on the site if someone were to enter in that URL? Like if they saw the truck, got redirected to the clients website from the new domain URL they purchased that’s listed on the truck, then it would show a different phone number on the page than the one they see when going to their normal website directly? The point is so that we can use a different tracking phone number to see which calls came specifically from this new URL.

Hopefully that made sense. Thanks in advance.

[ad_2]
1 Comment
  1. Yes it’s possible – you would write a function that checks the http referer header and if the domain was the advertised domain, change the phone number. Prob easiest to do this via a shortcode or JS.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer