Skip to content

Commit

Permalink
Merge pull request #2719 from bart-webleads/patch-4
Browse files Browse the repository at this point in the history
Fix "track" cookie
  • Loading branch information
carakas committed Jan 14, 2019
2 parents eaf934a + 7ec3b3b commit 8d77133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Frontend/Core/Engine/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public static function getVisitorId(): string
$cookie = self::getContainer()->get('fork.cookie');

// get/init tracking identifier
(self::$visitorId = $cookie->has('track') && $cookie->get('track', '') !== '')
self::$visitorId = ($cookie->has('track') && $cookie->get('track', '') !== '')
? $cookie->get('track')
: md5(uniqid('', true) . self::getSession()->getId());

Expand Down

0 comments on commit 8d77133

Please sign in to comment.