Skip to content

Commit

Permalink
Merge pull request #27 from SantinoPetrovic/SantinoPetrovic-patch-1
Browse files Browse the repository at this point in the history
Actually set the $specified_profile_id when checking
  • Loading branch information
bobdenotter authored Feb 22, 2017
2 parents b2b20ff + 4264746 commit 36563fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Handler/GoogleAnalyticsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ public function getProfileID() {
//Get all of the profiles associated with user
$items = $profiles->getItems();

//Get the specified profile ID
$specified_profile_id = $this->config->getGaProfileId();

//Check to see if Bolt Extension configuration has profile id already
if (! empty($specified_profile_id)) {
//Loop through each profile and check to see if the id is correctly set
Expand Down Expand Up @@ -172,4 +175,4 @@ public function setAnalytics($analytics)
return $this;
}

}
}

0 comments on commit 36563fb

Please sign in to comment.