Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #30 from amirbilu/master
Browse files Browse the repository at this point in the history
remove extra quotes
  • Loading branch information
Robert Kummer committed Apr 22, 2016
2 parents 7d80413 + 8557346 commit 097e1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ipunkt/LaravelAnalytics/Providers/GoogleAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function trackPage($page = null, $title = null, $hittype = null)
$page = ($page === null) ? "window.location.protocol + '//' + window.location.hostname + window.location.pathname + window.location.search" : "'{$page}'";
$title = ($title === null) ? "document.title" : "'{$title}'";

$trackingCode = "ga('send', {'hitType': '{$hittype}', 'page': {$page}, 'title': '{$title}'});";
$trackingCode = "ga('send', {'hitType': '{$hittype}', 'page': {$page}, 'title': {$title}});";
}

$this->trackingBag->add($trackingCode);
Expand Down

0 comments on commit 097e1b7

Please sign in to comment.