php Processwire Google Analytics跟踪

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Processwire Google Analytics跟踪相关的知识,希望对你有一定的参考价值。

<?php
$test_url = "https://ga-dev-tools.appspot.com/hit-builder/";

$http = new WireHttp();
$http->post('http://www.google-analytics.com/collect', [ // Make sure to use HTTP, not HTTPS!
  'v' => 1, // Version
  'tid' => 'your-tracking-id', // Tracking ID / Property ID.
  'cid' => 555, // Anonymous Client ID.
  't' => 'event', // hit type
  'ec' => 'myEventCategory', // category
  'ea' => 'myEventAction', // action
  'el' => 'myEventLabel', // label
]);

以上是关于php Processwire Google Analytics跟踪的主要内容,如果未能解决你的问题,请参考以下文章

php ProcessWire Mail

php ProcessWire管理数据表

php Processwire更改页面创建日期

php Processwire页面URL挂钩

php Processwire表格

php Processwire分页