Skip to content

Commit

Permalink
Adding query to extensions and search query additional tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Nov 9, 2020
1 parent 8e2735e commit 01d724e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions xapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public function onPageInitialized(Event $e) {

if ($this->filter()) {
if ($this->config->get('plugins.' . $this->pname . '.php.active')) {
//$remote = ;
$this->trackFromServer($this->prepareLRS($this->user));
$remote = $this->prepareLRS($this->user);
$this->trackFromServer($remote);
}
}
}
Expand Down Expand Up @@ -225,9 +225,10 @@ private function prepareQueries($tab)
}
private function trackFromServer(RemoteLRS &$lrs = null) {
//track_as_extension: true
// $uri_query = $this->grav['uri']->query();
// $url_query_tab = explode($uri_query,"&");
$queries = $this->prepaprepareQueries( explode( $this->grav['uri']->query() ,"&") );
$uri_query = $this->grav['uri']->query();
$url_query_tab = explode($uri_query,"&");

$queries = $this->prepaprepareQueries($url_query_tab);

// if(sizeof($url_query_tab)>0)
// {
Expand Down

0 comments on commit 01d724e

Please sign in to comment.