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]
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.