D
D
Daulet Nogaybek2016-12-12 17:30:05
JavaScript
Daulet Nogaybek, 2016-12-12 17:30:05

How to make a phone change when choosing a city + geotargeting?

Hello, there is a landing page and you need to set up geotargeting for it. But the problem is that in the TK there are buttons on the header of the site (city) and when you click on the city, the phone number should change accordingly, I found how to implement this on the Internet. But that's not what I need. I need to make it so that it first shows the corresponding phone number for geotargeting and add a button with the city, asset class. and if the geotargeting was determined incorrectly and the user decided to change the city by clicking on the link in the header, then change the phone number for the selected city without reloading the page. I tried to make 4 duplicate pages for 4 cities. But it seems to me that this is not entirely correct and it seems there is a way using the java
script geotargeting script smartlanding.biz/geotargeting-dlya-lendinga.html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-12-12
@zlobin

By default, you show the main phone, and when the user changes the city, you set the cookie in Java and then check if there is a cookie, then you show not the main phone, but the selected city.

V
Valeriyat, 2016-12-25
@Valeriyat

For geotargeting, try Dadata

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question