Comments (8)
You can, the Measurement Protocol parameter uip
is meant for IP override: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#uip
from universal-analytics.
I am having the same issue however I understand this is the "expected" behavior since the requests are coming from the server and not the client (I use this in a chatbot where everything runs on the server).
It would be nice to be able to override this somehow.
from universal-analytics.
Hi @jtillmann, does this module support passing these values to override IP and User Agent? If not, I can work of it and send you a pull request.
I'm think, these override parameters can be sent as part of visitor options. Something like this:
var visitor = ua('UA-XXXX-XX', 'CUSTOM_CLIENTID_1', {uip: "", ua: "" });
from universal-analytics.
They can not be provided to the visitor options, they need to be provided as parameters to track calls or as persistent parameters.
from universal-analytics.
Great! I didn't see that part of the documentation. This module already supports passing override parameters.
from universal-analytics.
Currently experiencing this issue on my fargate instance on AWS. I am setting the vistor using visitor.set("uip", ip)
with the proper ip and its using my servers IP instead. I think the request headers is being declared as source of truth instead of the visitor uip.
from universal-analytics.
@michaelhidalgo using version 0.4.23 seems not have the issue. In my case I needed to downgrade the package.
from universal-analytics.
Could you check the debug output? There should be no difference between .4 and .5 in this regard.
from universal-analytics.
Related Issues (20)
- Ad tracking? HOT 1
- Vulnerability in "request" sub-package HOT 6
- Typescript support? HOT 1
- How to mark event as "User" (raising login event won't mark thing as user) HOT 1
- Custom dimensions with E-commerce tracking HOT 1
- GA + UA HOT 2
- 'Cannot read properties of undefined (reading '_readableState')' error occurred after 0.5.0 update HOT 2
- Payload data sent as object not working HOT 2
- IP not being assigned when using a proxy HOT 2
- Requests are being ignored by GA HOT 5
- Support for Event Values as String HOT 4
- Analytics no longer sent since upgrade from 0.4.23
- Transaction is not reflected being reflected on GA dashboard HOT 2
- Transactions are not being reflected on GA dashboard HOT 3
- Custom dimension and Event data not matching
- Universal Analytics Deprecation HOT 3
- Active users count differently with and without `strictCidFormat`
- Yarn problem with WebpackEncore
- Separate License file?
- Using HTTP proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal-analytics.