Sha256: 33d63f99ea70531caef8989896a2ed74a97858108b60b43c6034a5a396be8b38

Contents?: true

Size: 964 Bytes

Versions: 127

Compression:

Stored size: 964 Bytes

Contents

<%@ Page Language="C#" %>
<script language="C#" runat="server">
  // Copyright 2009 Google Inc. All Rights Reserved.
  private const string GaAccount = "ACCOUNT ID GOES HERE";
  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>

Version data entries

127 entries across 127 versions & 5 rubygems

Version Path
middleman-core-3.0.12 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.12.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.12.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.11 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.11 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.10 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.10.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.10.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.9 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.9 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.8 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.8 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.8.pre.2 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.8.pre.2 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.8.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.8.pre.1 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.7 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.7 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-x86-mingw32-3.0.6 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet
middleman-core-3.0.6 lib/middleman-core/templates/mobile/source/tools/googleanalyticsformobile/aspx/aspx1.snippet