Git Product home page Git Product logo

vue-ba's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-ba's Issues

引用该库后是否就具备了基础的统计功能?

如果在main.js 中配置了引用,是否就已经可以统计uv和pv 了呢,因为这个库看起来是做埋点用的。
import ba from 'vue-ba'
import './assets/css/normalize.css'
Vue.config.productionTip = false;

Vue.use(ba, "175015a6227dca437e13abb9a6e845ac");
Vue.use(ba, { siteId: "175015a6227dca437e13abb9a6e845ac" });

readme文件示例用了uweb

通过传递
options 参数进行更多设置
Vue.use(uweb,options)

这里用了uweb应该是友盟那个库的用法吧

您好,请修改README文件

  1. 我注意到源代码options里有配置如下:
    autoPageview

  2. 但是README.md里面options说明没有这段话:
    README.md里的options

  3. 百度统计官方文档

_hmt.push(['_setAutoPageview', false]);
_hmt.push(['_trackPageview', '/new/path/new/name']);

在例子中,我们首先使用了_setAutoPageview接口关闭了自动PV跟踪,然后使用了_trackPageview接口来发送新的PV统计请求。

这样在页面被访问时,记入PV的就不是原URL了,而是您指定的新的URL。

请注意上述代码最好能够加在页头标签前,至少要保证位于百度统计分析代码的前面。

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.