How to get the IP that mixpanel event came from? - ip

Is it possible to get the IP address that mixpanel event "came" from?
Either using their webapp or custom reports or API - any method would be helpful.
Or maybe we can extract the first/last IP address for the user (profile)?
Thank you

I just got an email from Mixpanel support.
Apparentaly the IP is only used for geolocation purposes and is not stored automatically. So there's no way to retrieve the IPs from which the events were tracked.

Related

How can sniff Firebase Events?

I'm using Charles Proxy as Sniffer to check and verify the body/payload of my Firebase Events?
I see the POST request to firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog in Batch, and in each event, inside the POST request, I found the sourceExtension attrib, that I think constains all the event data, but I cant to decode, I tryed with base64 and bytes, but I cant see the content of the property.
I know the documented way to check firebase events is thourght the web portal in debug view, but this question is about how to see the content in the request before it arrive to the google cloud.
I saw another related post in Stackoverflow, but without any answers:
See Firebase network traffic in debug purpose
Anyone know how to sniff Firebase events and decode correctly? thanks in advance.

Prevent Google analytics from passing IP address to google optimize

I am installing Google Optimize for my client BUT they ask me how google optimize collects the data from the web. If I understood correctly, Google Optimize does not save any data. Instead, it uses data collected from Google Analytics. Is this correct?
If so, my client does not want Google Optimize to access the user IP address. I tried to create a view on google analytics but I don't know how to exclude the IP address field with a filter. Can I prevent Google analytics from passing IP address to Google Optimize?
Google Analytics does not show the IP address in the reports, you can still use the anonymizeIp parameter in order to obfuscate the last part of the IP and thus make it anonymous to the Google Analytics servers (documentation).

Google doesn't send Push-Notifications

I'm using Google Calendar API in my application.
The problem that I faced is that Google doesn't send me Push-Notifications.
I setup my app here https://console.developers.google.com/
Verified domain: https://console.developers.google.com/apis/credentials/domainverification
Watched calendar: https://developers.google.com/calendar/v3/reference/calendarList/watch and got successful response.
However, having done all of this, no push-notifications are received by my web-hook. It seems that Google just doesn't send them. Maybe I missed some step? I use https URL.
The problem was that the URL that I used for PUSH-NOTIFICATIONS wasn't whitelisted and if it was requested from other network(e.g. Google), then the request couldn't be processed.
Therefore, if there is such a problem, consider checking your URL availability outside your network. It should be accessible from anywhere and by anyone.

How do I create IP-based triggers on Google Tag Manager without using the Data Layer?

I need to create a trigger in GTM for all internal IPs, that I can then use as an exception trigger for another heatmap-type tag, for which I don't want to see internal activity. I know that you can add custom Javascript to push IP addresses to the Data Layer, but what I'm looking for is a trigger that just says "I'll fire if visitors' IPs are XXXX.XXXXX.XXXX." I can then use these as exception triggers. Can anyone help with this? Or if this won't work, is there any other way to filter traffic based on IPs? Please note that this needs to be done with minimal help from the devs (I'm a marketing guy with very basic Javascript knowledge).
You can do this all through the Tag Manager.
In the first step you should build your own datalayer - you can fire this through the Tag Manager as Custom HTML. This coulkd be something like this:
#Get the IP-Adress
x=$.get('http://jsonip.com/', function(r){ console.log(r.ip); })
y=x.responseText
#Push the data-layer
dataLayer.push({'ip': y});
If you got this you can build a Variable in the Tag Manager to grab the Data and build a TRUE/FALSE-Logic with this DataLayer as a trigger.
For filtering traffic based on IPs the easiest way would be to add IP filter in your Google Analytics View.
https://support.google.com/analytics/answer/1034823
GTM can't filter by IP as it does not have a Variable containing your IP.
You need to either send the users (internal/external) IP as a dataLayer variable, or fetch the users IP using javascript.
Then add a GTM Variable of type custom javascript, then use it in a GTM Trigger as a blocking rule on your Tags.
How do you get the clients IP? Have a look at this one:
How to get client's IP address using javascript only?

Google analytics vs IP change

Is there a way to keep one's IP excluded from Google Analytics logs even when it occasionally changes ? I'm asking because even if I was informed that my IP changed I would still find boring to go each time in GA to update the IP.
The best way to do that is using a blocking cookie. You'll have to execute some js code from your domain and create a filter in analytics:
http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55481

Resources