Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
e1e305a4
Commit
e1e305a4
authored
Nov 22, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些使用示例
parent
41c09f02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
ucenter_track.php
example/ucenter_track.php
+10
-4
No files found.
example/ucenter_track.php
View file @
e1e305a4
...
@@ -59,12 +59,18 @@ $normalProps = [
...
@@ -59,12 +59,18 @@ $normalProps = [
//追踪加入购物车操作
//追踪加入购物车操作
$ret
=
Track
::
matomoBulk
(
array_merge
(
$normalProps
,
[
$ret
=
Track
::
matomoBulk
(
array_merge
(
$normalProps
,
[
[
'setUrl'
,
'http://www.baidu.com/'
],
//
['setUrl', 'http://www.baidu.com/'],
[
'addEcommerceItem'
,
'sku130'
,
'iPhone 6s 高容量电池'
,
'手机'
,
'100'
,
1
],
[
'addEcommerceItem'
,
'sku130'
,
'iPhone 6s 高容量电池'
,
'手机'
,
'100'
,
1
],
[
'addEcommerceItem'
,
'sku12
3
'
,
'iPhone11 手机壳 666'
,
'手机'
,
'10'
,
1
],
[
'addEcommerceItem'
,
'sku12
4
'
,
'iPhone11 手机壳 666'
,
'手机'
,
'10'
,
1
],
//
['doTrackEcommerceCartUpdate', 110],
[
'doTrackEcommerceCartUpdate'
,
110
],
[
'doTrackPageView'
,
'购物车'
]
//
['doTrackPageView', '购物车']
]));
]));
//$ret = Track::matomoBulk(array_merge($normalProps, [
// ['setUrl', 'http://www.baidu.com/'],
// ['clearEcommerceCart'],
// ['doTrackPageView', '购物车']
//]));
print_r
(
$ret
);
print_r
(
$ret
);
echo
"
\n
"
;
echo
"
\n
"
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment