Giter VIP home page Giter VIP logo

Comments (3)

chrisvanmook avatar chrisvanmook commented on July 26, 2024 1

Hi. @LucusWebsites, I'm trying to figure out if this is a specific use-case, where we want to set custom dimensions on initialisation... That would mean we should be consistent and map all tracker object configurations on the initialisation options, that would be hard to maintain. What would be a better idea is perhaps introduce a initInstructions field, that we could use like so:

const instance = createInstance({
    urlBase: process.env.REACT_APP_MATOMO_URL_BASE,
    siteId: process.env.REACT_APP_MATOMO_SITE_ID,
    initInstructions: [{
     name: 'customDimensions',
     args:  [{
        id: 1,
        value: process.env.REACT_APP_VERSION
    }],
    // other instructions
   }]
});

Perhaps this would work for you?

from matomo-tracker.

LucusWebsites avatar LucusWebsites commented on July 26, 2024

@chrisvanmook Thanks for the quick reply!

And yes that would absolutely work for me as well!

from matomo-tracker.

chrisvanmook avatar chrisvanmook commented on July 26, 2024

@LucusWebsites Figured out we could use the configurations parameter, please check the pull-request

from matomo-tracker.

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.