diff --git a/src/OwaClient.php b/src/OwaClient.php index 08af703..9a18c52 100644 --- a/src/OwaClient.php +++ b/src/OwaClient.php @@ -2,6 +2,7 @@ namespace OwaSdk; use GuzzleHttp\Client; +use GuzzleHttp\Psr7; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\ClientException; @@ -202,7 +203,7 @@ public function makeRequest( $params ) { } - catch( \GuzzleHttp\Exception\RequestException | \GuzzleHttp\Exception\ConnectException | \GuzzleHttp\Exception\ClientException $e ) { + catch( RequestException | ConnectException | ClientException $e ) { $r = $e->getRequest(); $res = null; diff --git a/src/Tracker/TrackerClient.php b/src/Tracker/TrackerClient.php index be40ff5..4381ca7 100644 --- a/src/Tracker/TrackerClient.php +++ b/src/Tracker/TrackerClient.php @@ -462,6 +462,18 @@ public function trackPageview($event = '') { } return $this->trackEvent($this->pageview_event); } + + public function trackSyndicationFeed( $feed_format = 'rss', $feed_subscription_id = '') { + + $event = $this->makeEvent(); + + $event->setEventType('base.feed_request'); + $event->set( 'feed_format', $feed_format ); + $event->set( 'feed_subscription_id', $feed_subscription_id ); + + // track + return $this->trackEvent( $event ); + } public function trackAction($action_name, $action_group = '', $action_label = '', $numeric_value = 0) {