From e7e38c06ec3b8dc13eb3ebf42dcfe4a068cfc125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Scho=CC=88ps?= Date: Tue, 16 Feb 2021 12:27:14 +0100 Subject: [PATCH] Change cookie name --- src/Tracker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tracker.php b/src/Tracker.php index 7651fb6..1730764 100644 --- a/src/Tracker.php +++ b/src/Tracker.php @@ -13,7 +13,7 @@ class Tracker { - protected const COOKIE_NAME = 'tracker-visitor-id'; + protected const COOKIE_NAME = 'lt_session'; protected const CACHE_PREFIX_AB_TESTS = 'tracker-ab-tests'; protected $goals = []; @@ -114,7 +114,7 @@ protected function nextOption(ABTest $test) protected function getVisitorKey() { - return Cookie::get('tracker-visitor-id'); + return Cookie::get(self::COOKIE_NAME); } protected function getVisitor() : ?Visitor