Questtype ?Textinput?: add support for field sizes (Issue #252) and general improvements
This commit is contained in:
commit
8d903135a5
3476 changed files with 599099 additions and 0 deletions
30
www/analytics/misc/others/tracker_simpleImageTracker.php
Normal file
30
www/analytics/misc/others/tracker_simpleImageTracker.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
// -- Piwik Tracking API init --
|
||||
require_once "../../libs/PiwikTracker/PiwikTracker.php";
|
||||
PiwikTracker::$URL = 'http://localhost/piwik-master/';
|
||||
// Example 1: Tracks a pageview for Website id = {$IDSITE}
|
||||
$trackingURL = Piwik_getUrlTrackPageView($idSite = 16, $customTitle = 'This title will appear in the report Actions > Page titles');
|
||||
|
||||
?>
|
||||
<html>
|
||||
<body>
|
||||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
(function() {
|
||||
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://localhost/piwik-master/";
|
||||
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
||||
_paq.push(["setSiteId", "16"]);
|
||||
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
||||
g.defer=true; g.async=true; g.src=u+"js/piwik.js"; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Piwik Code -->
|
||||
|
||||
This page loads a Simple Tracker request to Piwik website id=1
|
||||
|
||||
<?php
|
||||
echo '<img src="' . htmlentities($trackingURL) . '" alt="" />';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue