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

Commit 097e1b7

Browse files
author
Robert Kummer
committed
Merge pull request #30 from amirbilu/master
remove extra quotes
2 parents 7d80413 + 8557346 commit 097e1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ipunkt/LaravelAnalytics/Providers/GoogleAnalytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function trackPage($page = null, $title = null, $hittype = null)
135135
$page = ($page === null) ? "window.location.protocol + '//' + window.location.hostname + window.location.pathname + window.location.search" : "'{$page}'";
136136
$title = ($title === null) ? "document.title" : "'{$title}'";
137137

138-
$trackingCode = "ga('send', {'hitType': '{$hittype}', 'page': {$page}, 'title': '{$title}'});";
138+
$trackingCode = "ga('send', {'hitType': '{$hittype}', 'page': {$page}, 'title': {$title}});";
139139
}
140140

141141
$this->trackingBag->add($trackingCode);

0 commit comments

Comments
 (0)