Skip to content

Commit 2e9d704

Browse files
author
Sachin Maheshwari
committed
reverting changes for UTM codes and GTM code
1 parent 361077d commit 2e9d704

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

web-assets/auth0/dev-tenant/universal-login.html

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@
2626
}
2727
</script>
2828

29+
<!-- Google Tag Manager -->
30+
<script>(function (w, d, s, l, i) {
31+
w[l] = w[l] || []; w[l].push({
32+
'gtm.start':
33+
new Date().getTime(), event: 'gtm.js'
34+
}); var f = d.getElementsByTagName(s)[0],
35+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
36+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
37+
})(window, document, 'script', 'dataLayer', 'GTM-MXXQHG8');</script>
38+
<!-- End Google Tag Manager -->
39+
2940
</head>
3041

3142
<body>
@@ -79,9 +90,9 @@
7990
var language;
8091
var optionsObj = Array();
8192
var regSource = config.extraParams.regSource || null;
82-
var utmSource = config.extraParams.utm_source || null;
83-
var utmMedium = config.extraParams.utm_medium || null;
84-
var utmCampaign = config.extraParams.utm_campaign || null;
93+
var utmSource = config.extraParams.utmSource || null;
94+
var utmMedium = config.extraParams.utmMedium || null;
95+
var utmCampaign = config.extraParams.utmCampaign || null;
8596
var retUrl = config.extraParams.returnUrl || null;
8697
var loginMode = config.extraParams.mode || 'signIn';
8798

@@ -248,17 +259,17 @@
248259
},
249260
{
250261
type: "hidden",
251-
name: "utm_source",
262+
name: "utmSource",
252263
value: utmSource
253264
},
254265
{
255266
type: "hidden",
256-
name: "utm_medium",
267+
name: "utmMedium",
257268
value: utmMedium
258269
},
259270
{
260271
type: "hidden",
261-
name: "utm_campaign",
272+
name: "utmCampaign",
262273
value: utmCampaign
263274
},
264275
{
@@ -420,18 +431,11 @@
420431
}
421432
}();
422433
</script>
423-
<!-- Global site tag (gtag.js) - Google Analytics -->
424-
<script>
425-
(function (i, s, o, g, r, a, m) {
426-
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
427-
(i[r].q = i[r].q || []).push(arguments)
428-
}, i[r].l = 1 * new Date(); a = s.createElement(o),
429-
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
430-
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
431-
432-
ga('create', 'UA-6340959-1', 'auto');
433-
ga('send', 'pageview');
434-
</script>
434+
<!-- Google Tag Manager (noscript) -->
435+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MXXQHG8" height="0" width="0"
436+
style="display:none;visibility:hidden"></iframe></noscript>
437+
<!-- End Google Tag Manager (noscript) -->
438+
435439
</body>
436440

437441
</html>

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ const authSetup = function () {
187187
.loginWithRedirect({
188188
redirect_uri: host + '?appUrl=' + returnAppUrl,
189189
regSource: regSource,
190-
utm_source: utmSource,
191-
utm_campaign: utmCampaign,
192-
utm_medium: utmMedium,
190+
utmSource: utmSource,
191+
utmCampaign: utmCampaign,
192+
utmMedium: utmMedium,
193193
returnUrl: returnAppUrl,
194194
mode: mode
195195
})

0 commit comments

Comments
 (0)