Tracking codes not loading reliably

Issue #38 new
Glyn Jenkins created an issue

I had thought this was just a caching issue but tracking codes are not loading reliably - sometimes they work sometimes not.

We are using the code \Concrete\Package\EuCookieLaw\Src\CookieDisclosure::getInstance()->areCookiesAllowed() to detect if cookies have been accepted.

If so we load Google Tag Manager which then loads all other tracking code.

When I clear all cookies and then accept cookies the cookie-disclosure cookie is set to true but the areCookiesAllowed() code does not run.

Sometimes clearing the concrete5 cache resolves this but maionly it does not.

Comments (2)

  1. Log in to comment