Workaround to store IP address despite Adblock on?

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 :wave:

You can use “Run Javascript” from Toolbox plugin to get IP Address
Screenshot 2022-08-31 at 17.55.01

Here is the script code

    $.getJSON('https://api.db-ip.com/v2/free/self', function(data) {
      console.log(JSON.stringify(data.ipAddress, null, 2));
    });

1 Like

Hi there,

awesome thank you @viquarahmed07! :slight_smile: 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 :wave:
just remove .ipAddress from data.ipAddress

Screenshot 2022-08-31 at 19.03.36

The response will be like this…

1 Like

Awesome, thanks.

1 Like

Hi @philipp.laengle107
First you have to add “Javascript to Bubble” element to page
Then give the Suffix name like this…


Screenshot 2022-08-31 at 19.22.39

Then in the “Run Javascript” Action workflow make changes like this
Screenshot 2022-08-31 at 19.23.06
Screenshot 2022-08-31 at 19.23.45

and results will be like this

2 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