From 487799b1099e0d6ba7601976ebcd63d828801a8a Mon Sep 17 00:00:00 2001 From: Oleg Solomka Date: Fri, 29 Sep 2017 10:31:24 -0500 Subject: [PATCH] comment out GA and AppInsights --- Glimpse.Site.userprefs | 21 +++ source/Glimpse.Site/App_Start/BundleConfig.cs | 4 +- source/Glimpse.Site/Scripts/site.js | 8 +- .../Glimpse.Site/Views/Shared/_Layout.cshtml | 10 +- source/Glimpse.Site/Web.config | 156 +++++++++--------- 5 files changed, 115 insertions(+), 84 deletions(-) create mode 100644 Glimpse.Site.userprefs diff --git a/Glimpse.Site.userprefs b/Glimpse.Site.userprefs new file mode 100644 index 0000000..68067af --- /dev/null +++ b/Glimpse.Site.userprefs @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/Glimpse.Site/App_Start/BundleConfig.cs b/source/Glimpse.Site/App_Start/BundleConfig.cs index 11a3214..d51a69c 100644 --- a/source/Glimpse.Site/App_Start/BundleConfig.cs +++ b/source/Glimpse.Site/App_Start/BundleConfig.cs @@ -8,8 +8,8 @@ public class BundleConfig // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { - bundles.Add(new ScriptBundle("~/bundles/headsitejs").Include( - "~/Scripts/ApplicationInsightsSnippet.js")); + //bundles.Add(new ScriptBundle("~/bundles/headsitejs").Include( + //"~/Scripts/ApplicationInsightsSnippet.js")); bundles.Add(new ScriptBundle("~/bundles/sitejs").Include( "~/Scripts/jquery-{version}.js", diff --git a/source/Glimpse.Site/Scripts/site.js b/source/Glimpse.Site/Scripts/site.js index 7ddc4e0..2b13769 100644 --- a/source/Glimpse.Site/Scripts/site.js +++ b/source/Glimpse.Site/Scripts/site.js @@ -124,8 +124,8 @@ var getTweetsLatest = function () { $('.action-video').click(function() { var url = jQuery(this).attr("data-videoUrl"), title = jQuery(this).attr("data-videoTitle"); - appInsights.trackEvent("Video", { action: "Play", title: title }); - _gaq.push(["_trackEvent", "Video", "Play", title]); + // appInsights.trackEvent("Video", { action: "Play", title: title }); + // _gaq.push(["_trackEvent", "Video", "Play", title]); $('body').prepend('
x
'); $('.overlay-close').click(function() { $('.overlay, .overlay-modal').remove(); @@ -152,6 +152,7 @@ $(function() { } }); +/* var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-22715154-1']); _gaq.push(['_trackPageview']); @@ -160,4 +161,5 @@ _gaq.push(['_trackPageview']); var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); -})(); \ No newline at end of file +})(); +*/ \ No newline at end of file diff --git a/source/Glimpse.Site/Views/Shared/_Layout.cshtml b/source/Glimpse.Site/Views/Shared/_Layout.cshtml index 915d38e..c9197b9 100644 --- a/source/Glimpse.Site/Views/Shared/_Layout.cshtml +++ b/source/Glimpse.Site/Views/Shared/_Layout.cshtml @@ -13,10 +13,12 @@ @ViewBag.Title - the open source diagnostics platform of the web @Styles.Render("~/content/sitecss") - - @Scripts.Render("~/bundles/headsitejs") + @* + + *@ + @*Scripts.Render("~/bundles/headsitejs")*@