Get the user IP address

Hi,

Is it possible to get IP address of the customer by using Campaign monitor?

Thank you.

Regards,
Peter

davidaf davidaf, 6 years ago

Hi Peter,

Do you mean you'd like to capture the IP of people subscribing to your list via your subscribe form? This can be done with a custom field and some scripting - you can find examples on the web if you search for "capture user IP".


The Campaign Monitor Blog – HTML email smarts to go with your good looks
peterorgin, 6 years ago

Hi Davida,

Thank you for your comments.

I need to get the IP address of the customer at the time of clicking the URL's of email.
Is there any way to get the IP address at this time?

Thank you

Regards,
Peter

NickoLabs NickoLabs, 6 years ago
peterorgin :

I need to get the IP address of the customer at the time of clicking the URL's of email.
Is there any way to get the IP address at this time?

Hi Peter

I guess you'd need to have your email in PHP (or ASP, which you prefer) and add some IP detection code on your own...

So, for example, instead of linking to the "webversion" of the email, you would link to a page you are hosting (email-may-2010.php for example) which would detect the IP address of the visitors and then store it someway (database or file). I'm sure you can find some php script that does that on Google.

The only problem is, if they click on an external link, they won't pass through your IP detection script. That would need to be added on CM's side, and I don't know if they'll add that much tracking. It can be considered a bit intrusive to get the IP address of visitors without any warning or particular reason (such as on a subscribe form, or forum).

If you want the features, try asking it on a wish list, maybe other users would be interested as well?

Regards, from a fellow coder...


Nickolas Simard
Multimedia integrator: Strategy & Web development
WebsiteTwitterFacebookLinkedIn
peterorgin, 6 years ago

HI Nickolas,

Thank you for the reply.
Yes I have a code for getting the user IP address. I can put this code in my email campaign.
But the problem is that Campaign montior changes the all url by using its own algorthim in the email text. so how can i know that which ip belong to which user?  Is any one know how to decode the url's which campaign monitor encode in the email text for e.g http://www.test.com become http://test.campaignmonitor/1/3/rs in the email etc

NickoLabs NickoLabs, 6 years ago

Hi peterorgin

peterorgin :

Is any one know how to decode the url's which campaign monitor encode in the email text for e.g http://www.test.com become http://test.campaignmonitor/1/3/rs in the email etc

I've recently red something about an issue with link conversion (link we "ugly" to the client, so had to be turned off) and found a reply by CM Team that linked to: How do I turn off link tracking and image downloading?.

I don't know if that'll work, but I hope that helps.


Nickolas Simard
Multimedia integrator: Strategy & Web development
WebsiteTwitterFacebookLinkedIn

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098