Skip to content

Commit

Permalink
fix: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Dec 7, 2023
1 parent 364c15b commit 6e6acdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/providers/gam/api/class-targeting-keys.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ final class Targeting_Keys extends Api_Object {
];

/**
* Parse site URL for targeting.
* Parse URL to be used as targeting value.
*
* @param string $url The URL to parse.
*
* @return string The parsed URL.
*/
public static function parse_site_url( $url ) {
public static function parse_url( $url ) {
// Remove the protocol.
$url = str_replace( 'https://', '', $url );
$url = str_replace( 'http://', '', $url );
Expand Down Expand Up @@ -79,7 +79,7 @@ private static function get_targeting_key_config( $key ) {
case 'site':
$config['type'] = 'PREDEFINED';
$config['reportable_type'] = 'CUSTOM_DIMENSION';
$config['values'] = [ self::parse_site_url( \get_bloginfo( 'url' ) ) ];
$config['values'] = [ self::parse_url( \get_bloginfo( 'url' ) ) ];
break;
}
return $config;
Expand Down

0 comments on commit 6e6acdf

Please sign in to comment.