add tracking to download events - if a track function exists
(it does on iitc.jonatkins.com, loaded from tracking.php)
This commit is contained in:
parent
f9eec96d65
commit
764e31db4b
@ -59,7 +59,7 @@ $iitc_version = preg_replace ( '/^(\d+\.\d+\.\d+)\.(\d{8}\.\d{6})/', '\1<small c
|
||||
IITC version <?php print $iitc_version;?>
|
||||
</p>
|
||||
|
||||
<a class="btn btn-large btn-primary" href="<?php print $path;?>/total-conversion-build.user.js">Download</a>
|
||||
<a class="btn btn-large btn-primary" onclick="if(track){track('desktop','download','iitc');}" href="<?php print $path;?>/total-conversion-build.user.js">Download</a>
|
||||
|
||||
<hr>
|
||||
|
||||
@ -103,7 +103,7 @@ foreach ( glob ( "$path/plugins/*.user.js" ) as $path )
|
||||
print "<td>$name</td>";
|
||||
print "<td>$basename<br />$version</td>";
|
||||
print "<td>$description</td>";
|
||||
print "<td><a href=\"$path\" class=\"btn btn-small btn-primary\">Download</a></td>";
|
||||
print "<td><a onclick=\"if(track){track('desktop','download','iitc-plugin-$basename');}\" href=\"$path\" class=\"btn btn-small btn-primary\">Download</a></td>";
|
||||
|
||||
# print "<a href=\"$path\">".$details['@name']."</a> <i>$name - version ".$details['@version']."</i>: <br/>\n";
|
||||
# print $details['@description'];
|
||||
|
@ -40,5 +40,5 @@ IITC Mobile is still in the early stages of development. Many things do not yet
|
||||
IITC Mobile version 0.3 (with IITC version 0.11.2).
|
||||
</p>
|
||||
|
||||
<a href="mobile/IITC-Mobile-0.3.apk" class="btn btn-large btn-primary">Download</a>
|
||||
<a onclick="if(track){track('mobile','download','iitc-mobile');}" href="mobile/IITC-Mobile-0.3.apk" class="btn btn-large btn-primary">Download</a>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user