<?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 Is there a way to use Google Analytics tag on Hub to track a link that leads to a offsite page.  in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/is-there-a-way-to-use-google-analytics-tag-on-hub/m-p/67614#M333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to see if the links we provide on our ArcGIS Hub site are being used.&amp;nbsp;&amp;nbsp;I have a google tag on the hub app and i can see traffic to the site etc from google analytics but I can't see if a user clicks on a link that leads away from the stie. From what I gather I need to insert the following code to do this but not sure where I would do that using Hub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;/**&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* Function that captures a click on an outbound link in Analytics.&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* This function takes a valid URL string as an argument, and uses that URL string&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* as the event label. Setting the transport method to 'beacon' lets the hit be sent&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* using 'navigator.sendBeacon' in browser that support it.&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;*/&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;var captureOutboundLink = function(url) {&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; ga('send', 'event', '&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;outbound&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;', '&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;click&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;',&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;url&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;, {&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'transport': 'beacon',&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'hitCallback': function(){document.location = url;}&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2020 20:50:18 GMT</pubDate>
    <dc:creator>JessicaSchneider</dc:creator>
    <dc:date>2020-05-28T20:50:18Z</dc:date>
    <item>
      <title>Is there a way to use Google Analytics tag on Hub to track a link that leads to a offsite page.</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/is-there-a-way-to-use-google-analytics-tag-on-hub/m-p/67614#M333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to see if the links we provide on our ArcGIS Hub site are being used.&amp;nbsp;&amp;nbsp;I have a google tag on the hub app and i can see traffic to the site etc from google analytics but I can't see if a user clicks on a link that leads away from the stie. From what I gather I need to insert the following code to do this but not sure where I would do that using Hub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;/**&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* Function that captures a click on an outbound link in Analytics.&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* This function takes a valid URL string as an argument, and uses that URL string&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* as the event label. Setting the transport method to 'beacon' lets the hit be sent&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;* using 'navigator.sendBeacon' in browser that support it.&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;*/&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;var captureOutboundLink = function(url) {&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; ga('send', 'event', '&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;outbound&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;', '&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;click&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;',&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #188038; background-color: #ffffff; font-weight: 500; font-size: 14px;"&gt;url&lt;/STRONG&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;, {&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'transport': 'beacon',&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'hitCallback': function(){document.location = url;}&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #188038; background-color: #ffffff; font-size: 14px;" /&gt;&lt;SPAN style="color: #188038; background-color: #ffffff; font-size: 14px;"&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 20:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/is-there-a-way-to-use-google-analytics-tag-on-hub/m-p/67614#M333</guid>
      <dc:creator>JessicaSchneider</dc:creator>
      <dc:date>2020-05-28T20:50:18Z</dc:date>
    </item>
  </channel>
</rss>

