Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Analytics retrieve custom variables statistics
    text
    copied!<p><strong>Edit</strong> <em>refurbished the question that was not clear</em></p> <p>New to GA, I'm looking at the way to retrieve automatically custom variables data statistics</p> <p>The query would have</p> <ul> <li>a <em>start</em> and an <em>end</em> dates (possibly equal)</li> <li>a <em>variable</em> name</li> </ul> <p>For instance, a <em>Page-level</em> variable <code>Brand</code> takes only three possible values, that are set by the web server, and seen by the client.<br/> The values are <em>Apple</em>, <em>Google</em> and <em>Microsoft</em>.</p> <p>The query to Google-Analytics could be something like (pseudo-code), provided that I use an authentication token previously acquired</p> <pre><code> ...getstatistics?myToken=123&amp;variable=Brand&amp;datefrom=20110121&amp;dateto=20110121 </code></pre> <p>And the result could be some xml like data</p> <pre><code> &lt;variable&gt;Brand&lt;/variable&gt;&lt;value&gt;Apple&lt;/value&gt;&lt;count&gt;3214&lt;/count&gt; &lt;variable&gt;Brand&lt;/variable&gt;&lt;value&gt;Google&lt;/value&gt;&lt;count&gt;4321&lt;/count&gt; &lt;variable&gt;Brand&lt;/variable&gt;&lt;value&gt;Microsoft&lt;/value&gt;&lt;count&gt;1345&lt;/count&gt; </code></pre> <p>Meaning for instance that the page-level custom variable <em>Brand</em> was set to the value <em>Apple</em> by the web server (and thus seen by the client / sent to GA) 3214 times.</p> <p>What is the correct way/protocol to query values/statistics from GA, in order to get statistics related to custom variables?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload