<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Google Analytics Widget - Tracking code in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165224#M5313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;once you have the google analytics widget all set, you need to put this into the index.template.html (inside the &amp;lt;head&amp;gt; tags):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;script type="text/javascript"&amp;gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; var _gaq = _gaq || []; &amp;nbsp;&amp;nbsp; _gaq.push(['_setAccount', 'UA-########-##']); &amp;nbsp;&amp;nbsp; _gaq.push(['_trackPageview']);&amp;nbsp; &amp;nbsp;&amp;nbsp; (function() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ga.src = ('https:' == document.location.protocol ? 'https://ssl' :&amp;nbsp; 'http://www') + '.google-analytics.com/ga.js'; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); &amp;nbsp;&amp;nbsp; })();&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, of course, go to your analytics account, register the domain and then insert the code above where it says 'UA-########-##'.&amp;nbsp; Then it might take a day or so to register anything on your account...maybe just a few hours...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 17:54:11 GMT</pubDate>
    <dc:creator>philippschnetzer</dc:creator>
    <dc:date>2012-05-30T17:54:11Z</dc:date>
    <item>
      <title>Google Analytics Widget - Tracking code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165223#M5312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded the Google Analytics Widget and have added it into my viewer. Everything seems to be working properly, but I'm not showing any hits so far on the Google Analytics accounty. I believe my issue stems from having not yet placed the tracking code I received when I registered on Google Analytics. Can anyone give me some guidance as to where I need to place this code or some possible troubleshooting ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashley&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 15:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165223#M5312</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2012-05-30T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics Widget - Tracking code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165224#M5313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;once you have the google analytics widget all set, you need to put this into the index.template.html (inside the &amp;lt;head&amp;gt; tags):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;script type="text/javascript"&amp;gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; var _gaq = _gaq || []; &amp;nbsp;&amp;nbsp; _gaq.push(['_setAccount', 'UA-########-##']); &amp;nbsp;&amp;nbsp; _gaq.push(['_trackPageview']);&amp;nbsp; &amp;nbsp;&amp;nbsp; (function() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ga.src = ('https:' == document.location.protocol ? 'https://ssl' :&amp;nbsp; 'http://www') + '.google-analytics.com/ga.js'; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); &amp;nbsp;&amp;nbsp; })();&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, of course, go to your analytics account, register the domain and then insert the code above where it says 'UA-########-##'.&amp;nbsp; Then it might take a day or so to register anything on your account...maybe just a few hours...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 17:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165224#M5313</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2012-05-30T17:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics Widget - Tracking code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165225#M5314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Knowing to insert the tracking code into the index.html is what I was missing. Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 19:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165225#M5314</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2012-05-30T19:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics Widget - Tracking code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165226#M5315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version viewer is it actually working on? 2.5?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 13:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165226#M5315</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2012-06-01T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Google Analytics Widget - Tracking code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165227#M5316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I have it working on 2.5.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 13:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/google-analytics-widget-tracking-code/m-p/165227#M5316</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2012-06-01T13:23:20Z</dc:date>
    </item>
  </channel>
</rss>

