<?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 Goal Funnel Analysis in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Goal-Funnel-Analysis-in-Splunk/m-p/20388#M3175</link>
    <description>&lt;P&gt;How would I query for transactions that first went to page A, and then page B?&lt;/P&gt;

&lt;P&gt;For one use case, I'm looking at goal funnels. Goal funnel visualization is a common web traffic analysis, where you look at the percentage of visitors that follow a predefined set of steps.  For example, I've got a shopping cart: of the 100% of visitors that enter the site, 30% put something in their shopping cart, 7% start the checkout, and 2% complete checkout.&lt;/P&gt;

&lt;P&gt;I see how I can use splunk to examine the weblogs, and group discrete events into transactions.  But is there a way to calculate the goal funnel percentages from those transactions?  &lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2011 23:51:40 GMT</pubDate>
    <dc:creator>fitzgeraldsteel</dc:creator>
    <dc:date>2011-01-04T23:51:40Z</dc:date>
    <item>
      <title>Goal Funnel Analysis in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Goal-Funnel-Analysis-in-Splunk/m-p/20388#M3175</link>
      <description>&lt;P&gt;How would I query for transactions that first went to page A, and then page B?&lt;/P&gt;

&lt;P&gt;For one use case, I'm looking at goal funnels. Goal funnel visualization is a common web traffic analysis, where you look at the percentage of visitors that follow a predefined set of steps.  For example, I've got a shopping cart: of the 100% of visitors that enter the site, 30% put something in their shopping cart, 7% start the checkout, and 2% complete checkout.&lt;/P&gt;

&lt;P&gt;I see how I can use splunk to examine the weblogs, and group discrete events into transactions.  But is there a way to calculate the goal funnel percentages from those transactions?  &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2011 23:51:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Goal-Funnel-Analysis-in-Splunk/m-p/20388#M3175</guid>
      <dc:creator>fitzgeraldsteel</dc:creator>
      <dc:date>2011-01-04T23:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Goal Funnel Analysis in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Goal-Funnel-Analysis-in-Splunk/m-p/20389#M3176</link>
      <description>&lt;P&gt;Sure. Let me kind of manufacture some details. If I'm way off base this might not be useful but it's worth a shot. &lt;/P&gt;

&lt;P&gt;Starting point is some transaction like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats values(url) as urls by sessionId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Often people start with transaction but stats is easier once you get used to being specific about what you need. )&lt;/P&gt;

&lt;P&gt;From that point you can do the following.  There's quite possibly a more elegant way to to this but this is the way that springs to mind:: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats values(url) as urls by sessionId 
| eval added_to_cart=if(searchmatch("url=*/cart"),1,null())
| eval started_checkout=if(searchmatch("url=*/checkout"),1,null())
| eval completed_checkout=if(searchmatch("url=*/checkout_complete"),1,null())
| stats count count(added_to_cart) as step1 count(started_checkout) as step2 count(completed_checkout) as step3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and from there making percentages is just a little bit more eval but I think you see the idea.   Hope this helps a bit.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2011 17:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Goal-Funnel-Analysis-in-Splunk/m-p/20389#M3176</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-01-14T17:19:22Z</dc:date>
    </item>
  </channel>
</rss>

