You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 line
1.1 KiB

  1. <?php
  2. /**
  3. * Matomo - free/libre analytics platform
  4. *
  5. * For more information, see README.md
  6. *
  7. * @license released under BSD License http://www.opensource.org/licenses/bsd-license.php
  8. * @link https://matomo.org/docs/tracking-api/
  9. *
  10. * @category Matomo
  11. * @package MatomoTracker
  12. */
  13. if (!class_exists('\MatomoTracker')) {
  14. include_once('MatomoTracker.php');
  15. }
  16. /**
  17. * Helper function to quickly generate the URL to track a page view.
  18. *
  19. * @deprecated
  20. * @param $idSite
  21. * @param string $documentTitle
  22. * @return string
  23. */
  24. function Piwik_getUrlTrackPageView($idSite, $documentTitle = '')
  25. {
  26. return Matomo_getUrlTrackPageView($idSite, $documentTitle);
  27. }
  28. /**
  29. * Helper function to quickly generate the URL to track a goal.
  30. *
  31. * @deprecated
  32. * @param $idSite
  33. * @param $idGoal
  34. * @param float $revenue
  35. * @return string
  36. */
  37. function Piwik_getUrlTrackGoal($idSite, $idGoal, $revenue = 0.0)
  38. {
  39. return Matomo_getUrlTrackGoal($idSite, $idGoal, $revenue);
  40. }
  41. /**
  42. * For BC only
  43. *
  44. * @deprecated use MatomoTracker instead
  45. */
  46. class PiwikTracker extends MatomoTracker {}