Sha256: 6fd356ee125ae4bb0186cbbe127cbc36116c6e6336112bff649dd0f6098ebc10

Contents?: true

Size: 1.22 KB

Versions: 127

Compression:

Stored size: 1.22 KB

Contents

<%@ Page Language="C#" %>
<script language="C#" runat="server">
  private const string GaAccount = "MO-3845491-5";
  private const string GaPixel = "ga.aspx";

  private string GoogleAnalyticsGetImageUrl() {
    System.Text.StringBuilder url = new System.Text.StringBuilder();
    url.Append(GaPixel + "?");
    url.Append("utmac=").Append(GaAccount);

    Random RandomClass = new Random();
    url.Append("&utmn=").Append(RandomClass.Next(0x7fffffff));

    string referer = "-";
    if (Request.UrlReferrer != null
         && "" != Request.UrlReferrer.ToString()) {
      referer = Request.UrlReferrer.ToString();
    }
    url.Append("&utmr=").Append(HttpUtility.UrlEncode(referer));

    if (HttpContext.Current.Request.Url != null) {
      url.Append("&utmp=").Append(HttpUtility.UrlEncode(Request.Url.PathAndQuery));
    }

    url.Append("&guid=ON");

    return url.ToString();
  }
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sample Mobile Analytics Page</title>
</head>
<body>

Publisher's content here.
<%
  string googleAnalyticsImageUrl = GoogleAnalyticsGetImageUrl();
%>
<img src="<%= googleAnalyticsImageUrl %>" />
Testing: <%= googleAnalyticsImageUrl %>
</body>
</html>

Version data entries

127 entries across 127 versions & 5 rubygems

Version Path
middleman-core-3.0.0.rc.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.beta.3 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.beta.2 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.3-x86-mingw32 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.3 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.2-x86-mingw32 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.2 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.1-x86-mingw32 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15.1 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15-x86-mingw32 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-2.0.15 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.beta.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.alpha.9 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.alpha.8 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-core-3.0.0.alpha.7 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-3.0.0.alpha.6 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-3.0.0.alpha.5 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-3.0.0.alpha.4 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-3.0.0.alpha.3 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx
middleman-3.0.0.alpha.2 lib/middleman/templates/mobile/source/tools/googleanalyticsformobile/aspx/sample.aspx