mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 00:21:30 +00:00
Merge pull request #7321 from overleaf/ta-ga-fallback
Fix window-ga Fallback GitOrigin-RevId: 56b192acbae5c8ba23c63f6d4a7d7334d13b8c73
This commit is contained in:
parent
333f334419
commit
1ea97c6ae6
1 changed files with 7 additions and 4 deletions
|
@ -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) };
|
||||
|
|
Loading…
Reference in a new issue