Coder Social home page Coder Social logo

Comments (8)

jtillmann avatar jtillmann commented on September 18, 2024 2

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.

sfratini avatar sfratini commented on September 18, 2024

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.

abskmj avatar abskmj commented on September 18, 2024

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.

jtillmann avatar jtillmann commented on September 18, 2024

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.

abskmj avatar abskmj commented on September 18, 2024

Great! I didn't see that part of the documentation. This module already supports passing override parameters.

from universal-analytics.

j-mendez avatar j-mendez commented on September 18, 2024

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.

j-mendez avatar j-mendez commented on September 18, 2024

@michaelhidalgo using version 0.4.23 seems not have the issue. In my case I needed to downgrade the package.

from universal-analytics.

jtillmann avatar jtillmann commented on September 18, 2024

Could you check the debug output? There should be no difference between .4 and .5 in this regard.

from universal-analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.