Skip to content

Commit

Permalink
adding update to issearchengine flag
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent b04fbb0 commit 7e89e13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/base/handlers/refererHandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ function notify($event) {
if ( $medium != $r->get( 'medium' ) ) {

$r->set( 'medium', $medium );

if ( $medium === 'organic-search' ) {

$r->set('is_searchengine', true);
}

$r->save();

owa_coreAPI::debug("Updating Referrer medium to be: $medium");
}
}
Expand Down

0 comments on commit 7e89e13

Please sign in to comment.