码迷,mamicode.com
首页 > 其他好文 > 详细

piwik - visitor log

时间:2014-08-25 17:01:14      阅读:616      评论:0      收藏:0      [点我收藏+]

标签:des   blog   http   os   io   for   ar   数据   2014   

1.调用visitor log数据的url:

http://piwik.tomtop.com/index.php?module=API&method=Live.getLastVisitsDetails&filter_limit=100&filter_offset=100&idSite=1&period=day&date=2014-08-25&format=xml&token_auth=211b361db21143d1ab16022e457350748a

2.api传递字段列表

1.result - row
id,id_site,id_visit,visit_ip,visitor_id,visitor_type
visitor_type_icon
visit_converted
visit_converted_icon
visit_ecommerce_status
visit_ecommerce_statusIcon
searches
events
actions
customVariables
goalConversions
site_currency
site_currency_symbol
server_date
visit_local_time
visit_local_hour
visit_server_hour
first_action_timestamp
last_action_timestamp
last_action_dateTime
visit_duration
visit_duration_pretty
visit_count
days_since_last_visit
days_since_first_visit
days_since_last_ecommerce_order
continent
continent_code
country
country_code
country_flag
region
region_code
city
location
latitude
longitude
provider
provider_name
provider_url
referrer_type
referrer_type_name
referrer_name
referrer_keyword
referrer_keyword_position
referrer_url
referrer_search_engine_url
referrer_search_engine_icon
operating_system
operating_system_code
operating_system_short_name
operating_system_icon
browser_family
browser_family_description
browser_name
browser_icon
browser_code
browser_version
screen_type
device_type
resolution
screen_type_icon
plugins
pluginsicons
server_timestamp
server_time_pretty
server_date_pretty
server_date_pretty_first_action
server_time_pretty_first_action


2.table:action_details
id,id_visit,type,url,page_title,page_id_action,server_time_pretty,page_id,timeSpent,timeSpentPretty,icon,generationTime,order_id,revenue,revenueSubTotal,revenueTax,revenueShipping,revenueDiscount,items,serverTimePretty,goal_name,goal_id,goal_page_id


3.order_item:
id,id_visit,order_id,item_sku,item_name,item_category,price,quantity,icon


4.table:custom_variables
id,page_id,customVariablePageName1,customVariablePageValue1,customVariablePageName2,customVariablePageValue2,customVariablePageName3,customVariablePageValue3,customVariablePageName4,customVariablePageValue4,customVariablePageName5,customVariablePageValue5,customVariablePageName6,customVariablePageValue6,customVariablePageName7,customVariablePageValue7,customVariablePageName8,customVariablePageValue8,customVariablePageName9,customVariablePageValue9



//5.ecommerceOrder
//id,id_visit,type,order_id,revenue,revenueSubTotal,revenueTax,revenueShipping,revenueDiscount,items,serverTimePretty




//6.goal
//id,id_visit,type,goal_name,goal_id,revenue,goal_page_id,server_time_pretty,url,icon


3 实例数据:

///check  cart
<row>
<type>ecommerceAbandonedCart</type>
<revenue>4855.53</revenue>
<items>2</items>
<serverTimePretty>周一 8月25日 14:14:00</serverTimePretty>
<itemDetails>
<row>
<itemSKU>V705B</itemSKU>
<itemName>
SSA Wireless Waterproof Bluetooth Sports Earphone Headset Headphone for Cellphone PC Swimming Skating
</itemName>
<itemCategory>Root</itemCategory>
<price>35.04</price>
<quantity>1</quantity>
</row>
<row>
<itemSKU>V464</itemSKU>
<itemName>
Wireless Bluetooth Syllable G08 Noise Reduction Cancellation Headphones for iPhone
</itemName>
<itemCategory>Video & Audio</itemCategory>
<price>98.89</price>
<quantity>1</quantity>
</row>
</itemDetails>
<icon>plugins/Morpheus/images/ecommerceAbandonedCart.gif</icon>
</row>


////// putong
<row>
<type>action</type>
<url>
http://www.tomtop.com/dc-dv-accessories/bags-cases-straps/waterproof-bags
</url>
<pageTitle>
Waterproof Bags - Bags, Cases & Straps - Cameras & Photo Accessories
</pageTitle>
<pageIdAction>17495</pageIdAction>
<serverTimePretty>周一 8月25日 14:14:00</serverTimePretty>
<pageId>477101</pageId>
<generationTime>1.42 秒</generationTime>
<timeSpent>0</timeSpent>
<timeSpentPretty>0 秒</timeSpentPretty>
<icon/>
</row>


////goal
<row>
<type>goal</type>
<goalName>账户页面</goalName>
<goalId>7</goalId>
<revenue>1</revenue>
<goalPageId>477692</goalPageId>
<serverTimePretty>周一 8月25日 14:20:11</serverTimePretty>
<url>
http://www.tomtop.com/customer/account/login/referer/aHR0cDovL3d3dy50b210b3AuY29tL2N1c3RvbWVyL2FjY291bnQvaW5kZXgv/
</url>
<icon>plugins/Morpheus/images/goal.png</icon>
</row>

<row>
<type>goal</type>
<goalName>Event7.1-下单成功页面</goalName>
<goalId>18</goalId>
<revenue>1</revenue>
<goalPageId>475521</goalPageId>
<serverTimePretty>周一 8月25日 13:49:50</serverTimePretty>
<url>http://www.tomtop.com/checkout/onepage/success/</url>
<icon>plugins/Morpheus/images/goal.png</icon>
</row>






//order
<row>
<type>ecommerceOrder</type>
<orderId>100320593</orderId>
<revenue>2.18</revenue>
<revenueSubTotal>1.19</revenueSubTotal>
<revenueTax>0</revenueTax>
<revenueShipping>0.56</revenueShipping>
<revenueDiscount>0</revenueDiscount>
<items>1</items>
<serverTimePretty>周一 8月25日 13:49:50</serverTimePretty>
<itemDetails>
<row>
<itemSKU>PA1599BR</itemSKU>
<itemName>
Soft Protective Cloth Sleeve Bag Pouch 7" * 4" Double Layer for Samsung Galaxy S5 S4 Note 3 2 etc
</itemName>
<itemCategory>Root</itemCategory>
<price>1.62</price>
<quantity>1</quantity>
</row>
</itemDetails>
<icon>plugins/Morpheus/images/ecommerceOrder.gif</icon>
</row>




//row xiamian customVariable
<customVariables>
<row>
<customVariableName1>Checkout</customVariableName1>
<customVariableValue1>AddProductToCart</customVariableValue1>
</row>
</customVariables>




piwik - visitor log

标签:des   blog   http   os   io   for   ar   数据   2014   

原文地址:http://blog.csdn.net/terry_water/article/details/38822885

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!