Skip to content

Commit

Permalink
fix(public): fix gtag is not defined
Browse files Browse the repository at this point in the history
```
Uncaught ReferenceError: gtag is not defined
```
  • Loading branch information
remarkablemark committed Nov 3, 2023
1 parent 3f2409b commit 19d4a57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -32,9 +32,9 @@
<script>
window['ga-disable-UA-59233605-5'] = 'production' !== '<%= NODE_ENV %>';
window.dataLayer = window.dataLayer || [];
function gtag() {
window.gtag = function () {
dataLayer.push(arguments);
}
};
gtag('js', new Date());
gtag('config', 'UA-59233605-5');
</script>
Expand Down

0 comments on commit 19d4a57

Please sign in to comment.