piwik - 사진 추적

사진 추적 원 리 는 src 로 api url 을 불 러 오 는 것 입 니 다.
그래서 api 에 대한 지식 이 많아 요.
api 에 대한 설명 은 공식 참조:http://developer.piwik.org/api-reference/tracking-api
<?php 
    $_product = $this->getProduct();
    $t_rand= rand(100000,999999);
    $t_id = substr(md5("admin"),8,16); 
    $t_h = date("h");
    $t_m = date("m");
    $t_s = date("s");
    $piwik_api = 'http://piwik.tomtop.com/piwik.php?_cvar={\"1\":[\"Cart\",\"Add\"]}&action_name=View settings&url=http://www.tomtop.com/sale/order/save/piwikaddtocart&idsite=1&rand='.$t_rand.'&h='.$t_h.'&m='.$t_m.'&s='.$t_s.'&rec=1&apiv=1&cookie=&urlref=http://www.tomtop.com&_id='.$t_id.'&';
?>
  //  trackurl = '<?php echo $piwik_api;  ?>';
 //   if(ILData[0]){
 //       trackurl = trackurl+'cip='+ILData[0]+'&';
 //   }
 //   currentLang = navigator.language;
 //   if(currentLang){
 //       trackurl = trackurl+'lang='+currentLang+'&';  
 //   }
//	jQuery("#pkimgid").html("<img src='"+trackurl+"' />"); 

이 사진 에 대한 추적 은 약간 닭 갈비 의 성질 이 있 는데, 물론 현재 연구 한 것 은 아직 투철 하지 않다
js 를 사용 할 수 있다 면 그림 은 필요 없 지만 js 를 사용 할 수 없다 면 많은 데 이 터 를 얻 지 못 하고 방문 횟수 만 얻 을 수 있다.많은 데 이 터 를 얻 는 것 은 js 를 통 해 얻 는 것 이기 때문이다.
그래서 약간 닭 갈비 의 성질 이 있 지만 api 이기 때문에 그의 쓸모 가 있 습 니 다. 이 api 에 대해 매개 변수 가 상당히 많 기 때문에 자세히 봐 야 합 니 다.

좋은 웹페이지 즐겨찾기