Viewing 4 replies - 1 through 4 (of 4 total)
  • Second this. Would love to be able to get that stat without another plugin. Setting this up for my company, and wanting to appeal to technophobes as much as possible by only using one plugin type.

    Huge fan, Hugh.

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    Unfortunately it just isn’t possible to gather that kind of info. If you want subscriber stats you would need to ask iTunes directly (and I’m not sure if they would even give that to you), but that would only be for iTunes and not other subscribers.

    The problem is that, because of how RSS feeds work, it’s just not possible to get actual subscriber stats, no matter what platform you’re using. Unless you get those stats directly from the directory you’re using (such as iTunes), you just can’t get it anywhere. If a service claims to have that info then they are not being truthful as subscriber counts are impossible to gather accurately. The ‘listeners’ count that this plugin provides is as close as possible to what you’re needing as it counts individual IP addresses that access your content.

    I hope that helps to clarify things!

    If this plugin has helped you then it would be great if you could support continued development by leaving a review ??

    Cheers,
    Hugh

    Thank you! Great description.

    I’ve managed to get some pretty solid tracking using some filters and Google analytics events. I’m also using cloudflare so I’ve added some extra IP address stuff.

    I’m using this php library to help with this: https://github.com/ins0/google-measurement-php-client

    /*-----------------------------------------------------------------------------------*/
    /* Add analytics tracking to our podcast downloads */
    /*-----------------------------------------------------------------------------------*/
    function podcast_analytics($file){
    
    	require_once(dirname(__FILE__).'/src/Racecore/GATracking/GATracking.php');
    
    	$client_ip = $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER['REMOTE_ADDR'];
    	$options = array(
    	    // use proxy
    	    'proxy' => array(
    	       'ip' => $client_ip
    	    )
    	);
    
    	$gatracking = new \Racecore\GATracking\GATracking('your-analytics-id-here', $options);
    
    	$f      = str_replace('https://example.com/','',$file);
    	$page 	= $gatracking->createTracking('Factory', array(
    	    'dh' => 'example.com',
    	    'dp' => $f,
    	    'dt' => $file
    	));
    
    	$event = $gatracking->createTracking('Event');
    	$event->setAsNonInteractionHit(false);
    	$event->setEventCategory('Audio');
    	$event->setEventAction('Plays');
    	$event->setEventLabel($f);
    
    	$response = $gatracking->sendMultipleTracking(array(
    	    $page, $event
    	));
    
    }
    add_action('ssp_file_download', 'podcast_analytics');
    /*-----------------------------------------------------------------------------------*/
    /* Add some Analytics tracking to our podcast feed 									 */
    /*-----------------------------------------------------------------------------------*/
    function track_podcast_xml(){
    
    	require_once(dirname(__FILE__).'/src/Racecore/GATracking/GATracking.php');
    
    	$client_ip = $_SERVER["HTTP_CF_CONNECTING_IP"] ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER['REMOTE_ADDR'];
    	$options = array(
    	    // use proxy
    	    'proxy' => array(
    	       'ip' => $client_ip
    	    )
    	);
    
    	$gatracking = new \Racecore\GATracking\GATracking('your-analytics-id-here', $options);
    
    	$page 	= $gatracking->createTracking('Factory', array(
    	    'dh' => 'example.com',
    	    'dp' => 'feed/podcast',
    	    'dt' => 'feed/podcast'
    	));
    
    	$event = $gatracking->createTracking('Event');
    	$event->setAsNonInteractionHit(false);
    	$event->setEventCategory('XML');
    	$event->setEventAction('FeedHit');
    	$event->setEventLabel('feed/podcast');
    
    	$response = $gatracking->sendMultipleTracking(array(
    	    $page, $event
    	));
    
    }
    add_action('ssp_before_feed', 'track_podcast_xml');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subscribers’ is closed to new replies.