如何在Matomo(Piwik)中跟踪自定义变量

时间:2018-12-10 20:54:17

标签: php matomo

我需要知道如何从使用自定义变量作为参数的API中获取结果。基本上,我需要它像where子句一样。

我有

 $api2 = file_get_contents("https://piwik.example.com/piwik/index.php?module=API&method=Goals.get&format=PHP&idSite=1&idgoal=1&period=day&date=" . $date . "&idSubtable=2&showColumns=nb_visits_converted&language=en&token_auth=TOEKN_AUTH&filter_limit=-1");
    $content2 = unserialize($api2);

从一个目标获得所有事件。我有一个自定义变量,其中将用户名作为自定义变量userName

0 个答案:

没有答案