Don't specify scheme when loading GA4 script (#18194)
This commit is contained in:
parent
49eb3da8b5
commit
2b23d4f6ed
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ function trackGoogleAnalytics4() {
|
|||
if (!addedGA4) {
|
||||
<%# Dynamically add the Google Analytics 4 script tag %>
|
||||
var script = document.createElement('script');
|
||||
script.src = "http://www.googletagmanager.com/gtag/js?id=" + ga4MeasurementCode;
|
||||
script.src = "//www.googletagmanager.com/gtag/js?id=" + ga4MeasurementCode;
|
||||
script.async = true;
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue