mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Merge pull request #7321 from overleaf/ta-ga-fallback
Fix window-ga Fallback GitOrigin-RevId: 56b192acbae5c8ba23c63f6d4a7d7334d13b8c73
This commit is contained in:
@@ -44,7 +44,10 @@ if (typeof(ExposedSettings.gaTokenV4) != "undefined" || typeof(ExposedSettings.g
|
||||
loadGA();
|
||||
}
|
||||
}
|
||||
else
|
||||
script(type="text/javascript", nonce=scriptNonce).
|
||||
window.ga = function() { console.log("would send to GA", arguments) };
|
||||
window.gtag = function() { console.log("would send to GA4", arguments) };
|
||||
|
||||
if typeof(ExposedSettings.gaTokenV4) === "undefined"
|
||||
script(type="text/javascript", nonce=scriptNonce).
|
||||
window.gtag = function() { console.log("would send to GA4", arguments) };
|
||||
if typeof(ExposedSettings.gaToken) === "undefined"
|
||||
script(type="text/javascript", nonce=scriptNonce).
|
||||
window.ga = function() { console.log("would send to GA", arguments) };
|
||||
|
||||
Reference in New Issue
Block a user