4 Star 8 Fork 9

CHINASOFT_OHOS / matomo-sdk-ohos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

matomo-sdk-ohos

项目介绍

项目名称:打点数据上报

所属系列:openharmony的第三方组件适配移植

功能:可以解析每个按钮的点击事件所上报的数据

基线版本:Release v4.1.2

项目移植状态:有差异

调用差异:无

开发版本:sdk6,DevEco Studio 2.2 Beta1

外部库依赖:matomo-sdk-ohos项目中的tracker库

效果展示

安装教程

1、在项目根目录下的build.gradle文件中

allprojects {
   repositories {
       maven {
           url 'https://s01.oss.sonatype.org/content/repositories/releases/'
       }
   }
}

2.在entry模块的build.gradle文件中

dependencies {
   implementation('com.gitee.chinasoft_ohos:matomo-sdk-ohos:1.0.0')
   ......  
}

在sdk6,DevEco Studio 2.2 Beta1下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下

使用说明

1.在AbilityPackage子类中初始化上报数据的基类和url

2.布局定义按钮

3.初始化按钮事件

4.在点击事件里面绑定上报数据

@Override
public TrackerBuilder onCreateTrackerConfig() {
    return TrackerBuilder.createDefault("https://demo.matomo.org/matomo.php", 53);
}
TrackHelper.track(new TrackMe().set(QueryParams.SESSION_START, 1))
        .screen("/")
        .title("Main screen")
        .with(getTracker()));

测试信息

CodeCheck代码测试无异常

CloudTest代码测试无异常

病毒安全检测通过

当前版本demo功能与原组件基本无差异

版本迭代

  • 1.0.0

版权和许可信息

Android SDK for Matomo is released under the BSD-3 Clause license, see LICENSE.
Copyright 2018 Matomo team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Matomo team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

可以解析每个按钮的点击事件所上报的数据 展开 收起
Java
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/chinasoft_ohos/matomo-sdk-ohos.git
git@gitee.com:chinasoft_ohos/matomo-sdk-ohos.git
chinasoft_ohos
matomo-sdk-ohos
matomo-sdk-ohos
master

搜索帮助