Skip to content

Commit

Permalink
ensure new Analytics property fields are assigned properly
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Nov 7, 2019
1 parent 230bc6e commit 04f88b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/Modules/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,9 @@ function ( $order_def ) {
return new WP_Error( $e->getCode(), $e->getMessage() );
}
$client->setDefer( $orig_defer );
$property_id = $property->id;
$internal_web_property_id = $property->internalWebPropertyID; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
/* @var Google_Service_Analytics_Webproperty $property Property instance. */
$property_id = $property->getId();
$internal_web_property_id = $property->getInternalWebPropertyId();
} else {
$is_new_property = false;
$property_id = $data['propertyID'];
Expand Down

0 comments on commit 04f88b9

Please sign in to comment.