- Issue created by @NicholasS
- πΊπΈUnited States NicholasS
I am not a great PHP developer, but I put breakpoints in and cron seems to die right when it hits https://git.drupalcode.org/project/google_analytics_counter/-/blob/4.0.x... where either the
new Metric()
ornew Dimension()
execute. But the variables are exactly the same as the default fallbacks 'pagePath' and 'screenPageViews' - πΊπΈUnited States NicholasS
I think I found a clue https://github.com/protocolbuffers/protobuf/issues/11203
- πΊπΈUnited States NicholasS
Yep that was the issue, my project uses git to commit the vendor folder, had to add an
.gitattributes
how the comment described https://github.com/protocolbuffers/protobuf/issues/11203#issuecomment-15... - Status changed to Closed: works as designed
over 1 year ago 4:09pm 24 July 2023 - πΈπ°Slovakia kaszarobert
What a strange issue. One time I experienced similar thing that the analytics Google library was not autoloaded even though composer installed it successfully, but restarting PHP FPM server fixed that - so that was just a cache problem. It looks like it's no accident they don't recommend commiting vendor and other external dependency code to the git repo. Glad it got sorted out for you.
- πΊπΈUnited States NicholasS
I still have the problem on our prod. Using Acquia, I think people who commit build artifact may have this same problem. I do still believe its a problem with my deployment process, though its been working for years, this is the first library we ever had an issue with.