如何添加第三方点击标签

时间:2012-11-04 20:11:35

标签: joomla click change-tracking

我的客户已向我提供了跟踪代码,以跟踪我在joomla网站上放置的网页外观设计的展示次数和点击次数。我已将此代码添加到显示图形的模块中,但客户端报告未进行跟踪。我可以在代码中看到时间戳标记,但不确定这些标记是如何工作的。

  //To track Impressions use the following URL:
http://bs.serving-sys.com/example/adServer.bs?cn=tf&c=19&mc=i4p&pli=5460041&PluID=0&ord=[timestamp]&rtu=-1

//To track Clicks use the following URL:
//Note: Please ensure that you implement a click tracking URL only in the clicks location in your ad server, 
//and an impression tracking URL only in the impression tracking location.
//Incorrect implementation of these URLs will result in major billing and reporting discrepancies.
http://bs.serving-sys.com/example/adServer.bs?cn=tf&4=20&mc=click&pli=5460041&PluID=0&ord=[timestamp]

1 个答案:

答案 0 :(得分:2)

您可以使用<?php echo time(); ?>获取当前时间戳。 因此,如果您的跟踪代码工作正常,您应该能够在替换[时间戳]后跟踪这些点击次数。

示例:

<a href="http://bs.serving-sys.com/example/adServer.bs?cn=tf&4=20&mc=click&pli=5460041&PluID=0&ord=[timestamp]" />

<a href="http://bs.serving-sys.com/example/adServer.bs?cn=tf&4=20&mc=click&pli=5460041&PluID=0&ord=<?php echo time(); ?>" />