Skip to content

Commit

Permalink
Merge pull request #84 from jonathanbossenger/feature/reorder-user-ag…
Browse files Browse the repository at this point in the history
…ent-check

Feature/reorder user agent check
  • Loading branch information
zahardev authored Oct 3, 2022
2 parents 2824cc4 + 74120ab commit 888a277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/classes/class-ssp-stats-hit.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ public function track_hit( $file = '', $episode = 0, $referrer = '' ) {
$referrer = 'overcast';
} else if ( stripos( $user_agent, 'Pocket Casts' ) !== false ) {
$referrer = 'pocketcasts';
} else if ( stripos( $user_agent, 'Android' ) !== false ) {
$referrer = 'android';
} else if ( stripos( $user_agent, 'PodcastAddict' ) !== false ) {
$referrer = 'podcast_addict';
} else if ( stripos( $user_agent, 'Player FM' ) !== false ) {
$referrer = 'playerfm';
} else if ( stripos( $user_agent, 'Google-Play' ) !== false ) {
$referrer = 'google_play';
} else if ( stripos( $user_agent, 'Android' ) !== false ) {
$referrer = 'android';
}

// Get episode ID for database insert
Expand Down

0 comments on commit 888a277

Please sign in to comment.