1.0.11 • Published 5 months ago

supermartian v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

项目

 `渠道推广统计`
 

项目部署

1.拉取git
git clone ssh://git@git.nu0g.com:16868/root/channelPv.git

2.初始化项目
cd /channelPv

##登录npm 账号    
npm login  看前端部署文档有账号

##初始化
npm init  

##运行调试
gulp dev

## 修改代码
。。。。。

## 打包代码-测试服
gulp test

## 打包代码-正式服服
gulp prod

## 每次更新都要更新版本号 
package.json 31行  :  "version": "1.0.6",

## 推送代码到npm 
npm publish

# 推送到npmjs后,可以登录后台看下。

# 然后 使用CDN域名  https://unpkg.com/ 可以访问项目里面的文件
# 格式
	https://unpkg.com/包名/具体js文件
	
	
### 代码记得同步git	 

项目使用

在各个站点增加下面js 代码

<!-- 正式服服-->
<!-- channelPv -->
<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://unpkg.com/supermartian/dist/static/js/main.js";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
</script>

<!-- 测试服-->
<!-- channelPv -->
<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://unpkg.com/supermartian/test/static/js/main.js";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
</script>

充值和注册统计+推广分享

获取浏览器储存里的下面2个参数 ,提交到充值和注册的api
渠道编码: channelPromotionStatisticsKey_channelcode
来源域名:channelPromotionStatisticsKey_sourceDomain
推广人id:promotionAndSharingKey_muReferrerId
localStorage.getItem('channelPromotionStatisticsKey_channelcode')
localStorage.getItem('channelPromotionStatisticsKey_sourceDomain')
localStorage.getItem('promotionAndSharingKey_muReferrerId')
1.0.11

5 months ago

1.0.10

6 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

8 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago