Giter Site home page Giter Site logo

Comments (3)

riyue avatar riyue commented on June 19, 2024

目前我们测试,在新方案中,sa.para.autoTrack[hook] = { customField: 'bar' } 这个自定义参数是可以使用的。没太看懂你说的是什么意思。方便留个微信或者邮箱吗,深入了解下您的问题

from sa-sdk-miniprogram.

malei0311 avatar malei0311 commented on June 19, 2024

目前我们测试,在新方案中,sa.para.autoTrack[hook] = { customField: 'bar' } 这个自定义参数是可以使用的。没太看懂你说的是什么意思。方便留个微信或者邮箱吗,深入了解下您的问题

设置在全局当然没问题,如果是动态设置,根据启动参数,如下:(顺序是不能保证的)

App({
  onShow(options) {
    // 复现步骤:点击右上角分享,然后返回
    // 会出现先执行 onAppShow 的回调,再执行次数的情况,也就是说此处的设置是没有办法写入到打点数据中的
    this.sensors.para.autoTrack['appShow'] = {
      foo: 'bar',
      ...pick(options.query)
    }
  }
})

from sa-sdk-miniprogram.

riyue avatar riyue commented on June 19, 2024

目前我们测试,在新方案中,sa.para.autoTrack[hook] = { customField: 'bar' } 这个自定义参数是可以使用的。没太看懂你说的是什么意思。方便留个微信或者邮箱吗,深入了解下您的问题

设置在全局当然没问题,如果是动态设置,根据启动参数,如下:(顺序是不能保证的)

App({
  onShow(options) {
    // 复现步骤:点击右上角分享,然后返回
    // 会出现先执行 onAppShow 的回调,再执行次数的情况,也就是说此处的设置是没有办法写入到打点数据中的
    this.sensors.para.autoTrack['appShow'] = {
      foo: 'bar',
      ...pick(options.query)
    }
  }
})

感谢反馈,我们又测了下,onLaunch和page的show没问题,但是app的onshow确实在新版本有问题。我们现在会暂时把新方案下掉。等出了兼容的解决方案,再更新。

from sa-sdk-miniprogram.

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.