diff --git a/README.txt b/README.txt index 895a3e0..e666667 100644 --- a/README.txt +++ b/README.txt @@ -7,7 +7,7 @@ License: GPLv3 License URI: http://www.gnu.org/licenses/gpl.html Requires at least: 5.2.0 Tested up to: 6.0.2 -Stable tag: 2.1.4 +Stable tag: 2.1.5 The official plugin for integrating Open Web Analytics with WordPress based web sites and applications. diff --git a/owa-plugin.php b/owa-plugin.php index 672f024..8b5ff14 100644 --- a/owa-plugin.php +++ b/owa-plugin.php @@ -5,7 +5,7 @@ Plugin URI: http://www.openwebanalytics.com Description: This plugin enables Wordpress blog owners to use the Open Web Analytics Framework. Author: Peter Adams -Version: 2.1.4 +Version: 2.1.5 Author URI: http://www.openwebanalytics.com */ @@ -916,15 +916,13 @@ function trackFeedRequest() { if ( $owa ) { - $event = $owa->makeEvent(); - // set event type - $event->setEventType( 'base.feed_request' ); // determine and set the type of feed - $event->set( 'feed_format', esc_attr( get_query_var( 'feed' ) ) ); - $event->set( 'feed_subscription_id', esc_attr( get_query_var( $this->getOption( 'feed_subscription_param' ) ) ) ); - //$event->set( 'feed_subscription_id', $_GET['owa_sid'] ); + $feed_format = esc_attr( get_query_var( 'feed' ) ); + $feed_subscription_id = esc_attr( get_query_var( $this->getOption( 'feed_subscription_param' ) ) ); // track - $owa->trackEvent( $event ); + if (method_exists( $owa, 'trackSyndicationFeed') ) { + $owa->trackSyndicationFeed( $feed_format, $feedsyndication_id ); + } } } }