We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2729a9a commit c595166Copy full SHA for c595166
app/views/layouts/_analytics.html.erb
@@ -13,10 +13,12 @@
13
<script>
14
window.dataLayer = window.dataLayer || [];
15
if (window.gtag) {
16
- gtag('event', 'page_view', {
17
- page_title: document.title,
18
- page_location: window.location.href,
19
- });
+ setTimeout(() => {
+ gtag('event', 'page_view', {
+ page_title: document.title,
+ page_location: window.location.href,
20
+ });
21
+ }, 1000);
22
} else {
23
function gtag(){dataLayer.push(arguments);}
24
gtag('consent', 'update', {
0 commit comments