-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…asurement Infrastructure/#7458 - Create API endpoints and Redux store infrastructure for "Enable enhanced measurement" feature
- Loading branch information
Showing
9 changed files
with
1,637 additions
and
20 deletions.
There are no files selected for viewing
452 changes: 452 additions & 0 deletions
452
assets/js/modules/analytics-4/datastore/enhanced-measurement.js
Large diffs are not rendered by default.
Oops, something went wrong.
494 changes: 494 additions & 0 deletions
494
assets/js/modules/analytics-4/datastore/enhanced-measurement.test.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
includes/Modules/Analytics_4/GoogleAnalyticsAdmin/EnhancedMeasurementSettingsModel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?php | ||
// phpcs:ignoreFile | ||
|
||
// Suppress coding standards checks for this file. | ||
// Reason: This file is a copy of the `GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings` class | ||
// from the Google API PHP Client library with a slight modification. | ||
|
||
/** | ||
* Class EnhancedMeasurementSettingsModel | ||
* | ||
* @package Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin | ||
* @copyright 2023 Google LLC | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 | ||
* @link https://sitekit.withgoogle.com | ||
*/ | ||
|
||
namespace Google\Site_Kit\Modules\Analytics_4\GoogleAnalyticsAdmin; | ||
|
||
/** | ||
* The EnhancedMeasurementSettingsModel class. | ||
*/ | ||
class EnhancedMeasurementSettingsModel extends \Google\Site_Kit_Dependencies\Google\Model { | ||
public $fileDownloadsEnabled; | ||
public $name; | ||
public $outboundClicksEnabled; | ||
public $pageChangesEnabled; | ||
public $scrollsEnabled; | ||
public $searchQueryParameter; | ||
public $siteSearchEnabled; | ||
public $streamEnabled; | ||
public $uriQueryParameter; | ||
public $videoEngagementEnabled; | ||
public function setFileDownloadsEnabled( $fileDownloadsEnabled ) { | ||
$this->fileDownloadsEnabled = $fileDownloadsEnabled; | ||
} | ||
public function getFileDownloadsEnabled() { | ||
return $this->fileDownloadsEnabled; | ||
} | ||
public function setName( $name ) { | ||
$this->name = $name; | ||
} | ||
public function getName() { | ||
return $this->name; | ||
} | ||
public function setOutboundClicksEnabled( $outboundClicksEnabled ) { | ||
$this->outboundClicksEnabled = $outboundClicksEnabled; | ||
} | ||
public function getOutboundClicksEnabled() { | ||
return $this->outboundClicksEnabled; | ||
} | ||
public function setPageChangesEnabled( $pageChangesEnabled ) { | ||
$this->pageChangesEnabled = $pageChangesEnabled; | ||
} | ||
public function getPageChangesEnabled() { | ||
return $this->pageChangesEnabled; | ||
} | ||
public function setScrollsEnabled( $scrollsEnabled ) { | ||
$this->scrollsEnabled = $scrollsEnabled; | ||
} | ||
public function getScrollsEnabled() { | ||
return $this->scrollsEnabled; | ||
} | ||
public function setSearchQueryParameter( $searchQueryParameter ) { | ||
$this->searchQueryParameter = $searchQueryParameter; | ||
} | ||
public function getSearchQueryParameter() { | ||
return $this->searchQueryParameter; | ||
} | ||
public function setSiteSearchEnabled( $siteSearchEnabled ) { | ||
$this->siteSearchEnabled = $siteSearchEnabled; | ||
} | ||
public function getSiteSearchEnabled() { | ||
return $this->siteSearchEnabled; | ||
} | ||
public function setStreamEnabled( $streamEnabled ) { | ||
$this->streamEnabled = $streamEnabled; | ||
} | ||
public function getStreamEnabled() { | ||
return $this->streamEnabled; | ||
} | ||
public function setUriQueryParameter( $uriQueryParameter ) { | ||
$this->uriQueryParameter = $uriQueryParameter; | ||
} | ||
public function getUriQueryParameter() { | ||
return $this->uriQueryParameter; | ||
} | ||
public function setVideoEngagementEnabled( $videoEngagementEnabled ) { | ||
$this->videoEngagementEnabled = $videoEngagementEnabled; | ||
} | ||
public function getVideoEngagementEnabled() { | ||
return $this->videoEngagementEnabled; | ||
} | ||
} |
Oops, something went wrong.