Possible to dynamically change phone number on landing page? | Community
Skip to main content
December 16, 2014
Question

Possible to dynamically change phone number on landing page?

  • December 16, 2014
  • 6 replies
  • 1527 views
I'm trying to think of an easy way to change the phone number on our landing pages depending on the user's region. Not sure if that would be javascript or somehow utilizing tokens - I know we can segment based on region and then change the number dynamically but I was hoping a solution could be something that works with anonymous leads as well. 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

Level 4
December 16, 2014
There is a HTML5 geolocation api but I think the rules indicate that the user must agree to be geolocated.  So not sure if there is a dependable way of gathering their location information
December 16, 2014
Have you tried creating a segmenation based off the inferred locations? (Inferred City, Inferred State Region, Inferred Postal Code...)
They are populated for alot of anonymous leads too and there is a whole bunch of them to select from. And then set your 800 number as default for those few anonymous leads that don't have it populated yet.

I have the best luck with inferred State and Country.
 
December 16, 2014
I'd use a Segmentation & Dynamic Content/Dynamic Snippet.
December 17, 2014
If you passed the user's location as a parameter in the landing page URL (landingpage.com/?location=california), then you can set up custom JavaScript to change the phone number. This StackOverflow post describes how to get value of a query parameter.

I think this is a good topic for the Marketo Developer Blog. I'll work on creating an example. 

 
December 17, 2014
Thanks for the suggestion. I had not thought that this would work with anonymous leads. It seems a bit temperamental? See my unsubscribe confirmation page here (http://pages.crfhealth.com/Unsubscribe---Confirmation.html) - there should be a tele number to the left of the email address in the footer. For me, an anonymous lead, it works on certain pages and not others. Any ideas here why it isn't defaulting properly? I've checked the preview and it works well when using the previewer. 
December 17, 2014
Works in IE but not Chrome. Very weird. Could be privacy settings or something? I'd imagine the DEFAULT snippet would show up regardless.