Skip to content

Commit

Permalink
Merge pull request #280 from appsembler/bugfix/gtm-with-video-measure…
Browse files Browse the repository at this point in the history
…ment-breaks-video-load

Increase timeout before gtm init to 3 seconds for yt video api compat
  • Loading branch information
bryanlandia authored Jul 11, 2023
2 parents e6cc775 + f9ed07d commit 33763de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/templates/partials/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
};setTimeout(loadGTM.bind(null, window,document,'script','dataLayer','${customer_gtm_id | n, js_escaped_string}'), 1000);</script>
};setTimeout(loadGTM.bind(null, window,document,'script','dataLayer','${customer_gtm_id | n, js_escaped_string}'), 3000);</script>
<!-- End Google Tag Manager -->
% endif

Expand Down

0 comments on commit 33763de

Please sign in to comment.