Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #313 from mozilla/fix-ga-set-gtag-on-window
Browse files Browse the repository at this point in the history
fix(ga): set gtag on window
  • Loading branch information
caugner authored Jun 26, 2024
2 parents d0ab06f + b9b88bc commit 0071f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!dntEnabled()) {
document.head.appendChild(gaScript);

window.dataLayer = window.dataLayer || [];
function gtag() {
window.gtag = function() {
dataLayer.push(arguments);
}
gtag("js", new Date());
Expand Down

0 comments on commit 0071f62

Please sign in to comment.