Home > Programming, Servers & Scripts >

Call out Users Location on landing Page (8)


04-27-2020 02:13 AM #1 tacoloco (Member)
Call out Users Location on landing Page

Hey guys, how do i add the users location to the landing page?
ie - New York singles looking to meet up

I've been doing some research and i believe its a server side script? is this correct?
Is there an easier/cheaper way to do it if i'm just using landerlab for hosting at the moment?

thanks!


04-27-2020 12:34 PM #2 matuloo (Legendary Moderator)

The setup I'm using requires a GEO IP database (maxmind for example) beeing installed on the server, then you can access it with some php code... my coder is doing this for me so not exactly what function it is.

You can also use the geo detection with some trackers, you can make the location tag part of the url and a php code can grab it from there. Do you happen to know how to code or know someone who does?

Or maybe some coder here on the forum will be able to give you the piece of code you need


04-27-2020 01:39 PM #3 platinum (Veteran Member)

If you're already using LanderLab you can do it pretty easily.

Here's how to do it step-by-step.

- Open your lander in the Visual Editor.
- Go to File > Lander Settings, then click on Enable Dynamic Tokens, then Save Settings.



- Navigate to the part of the lander where you want to dynamically insert the user location, then add the user location dynamic placeholder e.g. [[location]], then save the lander changes.



- When pushing your lander to your tracker, simply add location as query string parameter, then specify the tracking token of your tracker that will pass the location information based on your visitor's location.



Optionally, if your lander is already added on your tracker, you can skip the last step and just append the location parameter on your tracker landing page configuration.

One last important thing you need to be aware of, is that the dynamic placeholder [[location]] should be exactly the same as the url parameter where you are passing the location information from your tracker.


04-27-2020 07:55 PM #4 matuloo (Legendary Moderator)

Thanks platinum! I'm not familiar with lander LanderLab so I had no idea it was that easy


04-27-2020 08:04 PM #5 tacoloco (Member)

Thanks Losid, I'll give this a go.
Is there a fallback variable i can specify if location can't be determined?


09-08-2020 02:13 PM #6 stungads (Senior Member)

Quote Originally Posted by matuloo View Post
The setup I'm using requires a GEO IP database (maxmind for example) beeing installed on the server, then you can access it with some php code... my coder is doing this for me so not exactly what function it is.
So, what's the purpose of having MaxMind vs. any other tracker that could display visitor's country on a landing page? I researched a bit into MaxMind and you can call out the visitor's country on a webpage, but on a tracker like Voluum you can also do it on the lander setting tab.


09-08-2020 03:51 PM #7 matuloo (Legendary Moderator)

Now when most trackers have a reliable GEO database themselves, it's pointless to use maxmind (or other) just for that.

But, there are DBs for carriers, ISPs, cities etc... so if you want to target or analyze traffic in a more granular way, these DBs still make sense.

And on top of that, not every tracker or lander building solution has a good GEO database, some might use a free one that is far from accurate.


09-08-2020 05:37 PM #8 jeremie (Moderator)

Agree with Matuloo. It is less useful now.

Last month, AWS added several geolocation headers to CloudFront using Lambda. They used to have only country, so it is better now with City and Region
https://aws.amazon.com/about-aws/wha...ation-headers/

I need more testing to see the full potential because it can sometimes prevent caching, so that slows down the page, but I will post more about this when I have found something that works.


Home > Programming, Servers & Scripts >