Giter Club home page Giter Club logo

Comments (1)

joshdk avatar joshdk commented on June 17, 2024

👋🏻 Hello @sneko! Thanks for the questions. To answer them in no particular order:


the version hardcoded to "1"

This project was written targeting the older GA version because I had several existing properties that had various pieces of custom tracking code that I wanted to eliminate.

GA4 isn't currently supported, but that's only because I haven't had time to implement it yet.

why it's not possible to leave the choice of the destination property to the frontend?

This project is primarily intended (as this is how I'm using it) to be deployed as a sidecar container within an existing pod, where that pod serves a single site (or property). The solution to supporting multiple properties is to deploy them as multiple pods, and have individual proxy sidecars for each.

Multiple (vhost-style?) property selection could potentially work, but you would need to maintain a mapping of domains to property IDs.

Is there any limitation for that?

The general goal of this project is to make the collection of analytics completely transparent to both the user agent, as well as to the webservice. Passing GA property IDs back and forth would violate both of these rules, at which point you might as well just use gtag.js etc.


Hopefully that provides some insight. I'm also happy to talk about potential improvements or review pull requests 🙂

Cheers!

from google-analytics-proxy.

Related Issues (1)

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.