<?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: Send sas data to google Analytic for optimisation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281257#M59082</link>
    <description>&lt;P&gt;Not really, my marketing department wants to use this data optimisation purposes.&lt;/P&gt;&lt;P&gt;It is a handful of leads that are required to be sent back to google Analytics.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 20:15:43 GMT</pubDate>
    <dc:creator>Agogo</dc:creator>
    <dc:date>2016-06-29T20:15:43Z</dc:date>
    <item>
      <title>Send sas data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281159#M59069</link>
      <description>&lt;P&gt;I am trying to send a sas dataset to google analytics for optimisation, has someone done it before or any pointer would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281159#M59069</guid>
      <dc:creator>Agogo</dc:creator>
      <dc:date>2016-06-29T16:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281179#M59071</link>
      <description>&lt;P&gt;Are you expecting Google to do better than SAS?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281179#M59071</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-29T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Send sas data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281257#M59082</link>
      <description>&lt;P&gt;Not really, my marketing department wants to use this data optimisation purposes.&lt;/P&gt;&lt;P&gt;It is a handful of leads that are required to be sent back to google Analytics.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 20:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281257#M59082</guid>
      <dc:creator>Agogo</dc:creator>
      <dc:date>2016-06-29T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re:  data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281259#M59083</link>
      <description>&lt;P&gt;Not really, my marketing department wants to use this data optimisation purposes.&lt;/P&gt;&lt;P&gt;It is a handful of leads that are required to be sent back to google Analytics.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 20:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281259#M59083</guid>
      <dc:creator>Agogo</dc:creator>
      <dc:date>2016-06-29T20:19:44Z</dc:date>
    </item>
    <item>
      <title>Re:  data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281264#M59084</link>
      <description>&lt;P&gt;Is this a one-time process? &amp;nbsp;Or something ongoing? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps if you provide a link to the Google Analytics documentation that describes how this data is to be formatted/sent, someone here can advise how you might transmit the records from your SAS data set appropriately.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 20:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281264#M59084</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-06-29T20:33:43Z</dc:date>
    </item>
    <item>
      <title>Re:  data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281275#M59085</link>
      <description>&lt;P&gt;Chris, It will be an ongoing process and ideally automated one so any format that is easier would be good.&lt;/P&gt;&lt;P&gt;My understanding is that to do this programmatically I should use the google Analytics measurement protocol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/analytics/devguides/collection/protocol/v1/" target="_blank"&gt;https://developers.google.com/analytics/devguides/collection/protocol/v1/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 21:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281275#M59085</guid>
      <dc:creator>Agogo</dc:creator>
      <dc:date>2016-06-29T21:07:42Z</dc:date>
    </item>
    <item>
      <title>Re:  data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281407#M59096</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4432"&gt;@Agogo﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for that reference. &amp;nbsp;SAS has a procedure called &lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#n0t7v16eitluu2n15ffpfeafqszs.htm" target="_self"&gt;PROC HTTP&lt;/A&gt; that allows you to send data to web sites and interact with web-based APIs like this. &amp;nbsp;I don't have any experience with this Google Analytics API so I can only guess at some things, but here is an example that uses some fields from an example in the Google Analytics developer's guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro echoResp(fn=);
data _null_;
 infile &amp;amp;fn;
 input;
 put _infile_;
run;
%mend;

filename resp temp;
/*
    v=1              // Version.
    &amp;amp;tid=UA-XXXXX-Y  // Tracking ID / Property ID.
    &amp;amp;cid=555         // Anonymous Client ID.
    &amp;amp;t=              // Hit Type.
*/
proc http
 url='http://www.google-analytics.com/v=1&amp;amp;tid=UA-XXXXX-Y&amp;amp;cid=555&amp;amp;t=pageview&amp;amp;dp=%2Fhome'
 method='POST'
 out=resp
 ;
run;

/* Echo response content to the log */
%echoResp(resp);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You would need to form one call per record, or you can create a "batch" style call per the Google Analytics guide to issue multiple records within a single HTTP call.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281407#M59096</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-06-30T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re:  data to google Analytic for optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281678#M59117</link>
      <description>&lt;P&gt;Thanks Chris, I am going to play with it monday when i am back in the office.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;very much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Send-sas-data-to-google-Analytic-for-optimisation/m-p/281678#M59117</guid>
      <dc:creator>Agogo</dc:creator>
      <dc:date>2016-07-01T11:00:55Z</dc:date>
    </item>
  </channel>
</rss>

