Hi all,
is there a way to store a users IP address in an easy manner? I tested Ipiphy and other Plugins, but none that I found works when Adblock is active. I’m aware to previous posts tackling this issue, but none of them seems to work properly or is too complicated.
For my particular use case, telling the user to turn Adblock of would be extremely clumsy. How could I possibly solve this?
Cheers,
Philipp
1 Like
Hello @philipp.laengle107 
You can use “Run Javascript” from Toolbox plugin to get IP Address

Here is the script code
$.getJSON('https://api.db-ip.com/v2/free/self', function(data) {
console.log(JSON.stringify(data.ipAddress, null, 2));
});
2 Likes
Hi there,
awesome thank you @viquarahmed07!
I will try that ASAP. As I’m not used to work with JS, how can I store this value in a workflow such as “Make changes to a thing” for example.
Cheers,
Philipp
Is there anyway to extract the estimated City, State, country, etc from this?
Hi @tylerboodman 
just remove .ipAddress from data.ipAddress

The response will be like this…
2 Likes
Hi @philipp.laengle107
First you have to add “Javascript to Bubble” element to page
Then give the Suffix name like this…
Then in the “Run Javascript” Action workflow make changes like this


and results will be like this
3 Likes
Hi @viquarahmed07 thank you so much! This works like an absolute charm. Just tested it and already fully implemented it into my application. One more time: Thank you!
1 Like