title: How do I get Custom Variables in Google Analytics to work using Async method?
body: <p>So, I'm researching how to use Google Analytics by applying it to a test site I've built using VB.NET and MVC5. I'm using the Async method since that seems to be what the Google Developers site is recommending.</p>
  
  <p>In my _Layout.vbhtml (which Visual Studio automatically generated for me) I have the following code between my <code>&lt;head&gt;</code> and <code>&lt;/head&gt;</code> tags:</p>
  
  <pre><code>&lt;head&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;title&gt;@ViewBag.Title - My ASP.NET Application&lt;/title&gt;
  @Styles.Render("~/Content/css")
  @Scripts.Render("~/bundles/modernizr")
  &lt;script&gt;
      window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date;
      ga('create', 'UA-75489237-2', 'auto');
      ga('send', 'pageview');
  &lt;/script&gt;
  &lt;script async src='https://www.google-analytics.com/analytics.js'&gt;&lt;/script&gt;
  &lt;script&gt;
      _gaq.push(['_setCustomVar',
          5,                  // This custom var is set to slot #5.  Required parameter.
          'CusVarTest',       // The top-level name for your online content categories.  Required parameter.
          'Successful',       // Sets the value of "Section" to "Life &amp; Style" for this particular aricle.  Required parameter.
          3                   // Sets the scope to page-level.  Optional parameter.
      ]);
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Now, theoretically, this should be working, but when I go to the Google Analytics site, and go to "Reporting --> Audience --> Custom --> Custom Variables" I am seeing no sign of my variable.</p>
  
  <p>Any thoughts?</p>