<?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: tracking virtual pages - work with VPageView in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734238#M8865</link>
    <description>&lt;P&gt;and here's another example of UC, which might be quite common and we would like to track it .. when user navigates to some page and while the page is loading, he will navigate away again ..&lt;/P&gt;

&lt;P&gt;something like this?&lt;/P&gt;

&lt;PRE&gt;var tracker = ADRUM.events.VPageView({url:"some url"})
tracker.start();
ADRUM.report(tracker);&lt;/PRE&gt;

&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;J.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2017 09:04:54 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-03-28T09:04:54Z</dc:date>
    <item>
      <title>tracking virtual pages - work with VPageView</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734237#M8864</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt; I'd like to clarify expected use cases, how we should work with VPageView tracker object for transition between 2 virtual pages:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;according to the &lt;A href="https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM#ExtendtheJavaScriptAgentforSinglePageApplications(SPAs)inBrowserRUM-error" target="_blank" rel="nofollow noopener noreferrer"&gt;example down here&lt;/A&gt;, the use case could be:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;instantiate object:&amp;nbsp;
&lt;PRE&gt;var tracker = ADRUM.events.VPageView({url:"some url"});&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;start tracking (marks the starting time) .. latest version of code calls this from the constructor, so this might be optional?&lt;/P&gt;
&lt;PRE&gt;tracker.start();&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;do the transition, page content loading etc .. use &lt;EM&gt;&lt;STRONG&gt;mark*&lt;/STRONG&gt;&lt;/EM&gt; setters for different phases if we need more granularity&lt;/LI&gt;
&lt;LI&gt;end the tracking by
&lt;PRE&gt;tracker.end();&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;send the result into AD:
&lt;PRE&gt;ADRUM.report(tracker);&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;do I have to finish the whole scenario? for example what happens, if I call only start() and then send it to AD? and then later create new tracker (for the same url), call end() on it and send it again? which setters on the tracker object are 'necessary'? do I have to pass URL in the constructor (as it's in the example), or not (as it's in the middle of the page)?&lt;BR /&gt; &lt;BR /&gt;are the Error tracker objects also 'xhr correlated'? if so, where is this relation stored? for example if user is working in multiple tabs ..&lt;BR /&gt; &lt;BR /&gt;thanks for clarifying this, I haven't seen the answers in the documentation ..&lt;BR /&gt; J.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 06:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734237#M8864</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-03-27T06:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: tracking virtual pages - work with VPageView</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734238#M8865</link>
      <description>&lt;P&gt;and here's another example of UC, which might be quite common and we would like to track it .. when user navigates to some page and while the page is loading, he will navigate away again ..&lt;/P&gt;

&lt;P&gt;something like this?&lt;/P&gt;

&lt;PRE&gt;var tracker = ADRUM.events.VPageView({url:"some url"})
tracker.start();
ADRUM.report(tracker);&lt;/PRE&gt;

&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;J.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734238#M8865</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-03-28T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: tracking virtual pages - work with VPageView</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734239#M8866</link>
      <description>&lt;P&gt;Hi Jakub,&lt;/P&gt;

&lt;P&gt;If you don't explicitly set the end() marker, it will still go ahead and&amp;nbsp;send the metrics without the Page Load Time (PLT metric), however the EUM server will reject the report as this is a mandatory metric. You should see something like this in the DroppedBeacons.log:&lt;/P&gt;
&lt;PRE&gt;31 Mar 2017 02:28:01.263 -0700&amp;nbsp; Beacon to Record Converter-7&amp;nbsp; DroppedBeacon&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INFO&amp;nbsp; &amp;nbsp; appKey=EUM-AAB-BEY, recordType=BROWSER, validationType=INSUFFICIENT_DATA_METRIC, agentVersion=null, message=VIRTUAL_PAGE, Mandatory metric [PLT] not available : {"eg":"2","et":3,"eu":"5/6#7","ts":1490952479169,"mg":"0","au":"1://2/3/4","at":0,"ud":{"d1":"v1","d2":"v2","d3":"v3"},"mx":{"DDT":80,"DRT":421,"DPT":341,"DOM":421,"PLC":1},"si":227}&lt;/PRE&gt;
&lt;P&gt;When you create a new tracker, it will be a different session being reported, hence it wont build on the old in-complete session.&lt;/P&gt;

&lt;P&gt;The mandatory metrics for Virtual Pages is the Page Load Time (PLT) which is marked by the end() call. Another mandatory metric Page Load Count (PLC) is calculated automatically and is included in the metrics automatically.&lt;/P&gt;

&lt;P&gt;I am not sure I understood the question about Error trackers being xhr correlated. The Error tracker is to report error for the base page if &amp;nbsp;the parent object is not set. If the parent is set to a particular object tracker (ajax, virtual page, etc) it will be reported for that object.&lt;/P&gt;

&lt;P&gt;eg If you report something like:&lt;/P&gt;
&lt;PRE&gt;		var ajaxT = new ADRUM.events.Ajax();
		   
		// set url
		ajaxT.url('something loaded');
		   
		// mark timings
		ajaxT.markSendTime(100);
		ajaxT.markFirstByteTime(200);
		ajaxT.markRespAvailTime(300);
		ajaxT.markRespProcTime(400);
		
		var errorm = new ADRUM.events.Error();
		errorm.msg("test message123");
		errorm.line(10);
		errorm.parent(ajaxT);
		ADRUM.report(errorm);&lt;/PRE&gt;
&lt;P&gt;You would see the error in the browser snpshot as:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35269iD0C4405AB4378923/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this answers your question.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734239#M8866</guid>
      <dc:creator>Mayuresh_Kshirs</dc:creator>
      <dc:date>2017-03-31T10:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: tracking virtual pages - work with VPageView</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734240#M8867</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;that makes sense, thanks, I'll try it .. and it might be answer for &lt;A href="https://community.appdynamics.com/t5/EUM-and-Analytics-Mobile-Metrics/manual-tracking-of-errors/m-p/23582#U23582" target="_self"&gt;this question&lt;/A&gt; too&lt;/P&gt;

&lt;P&gt;one more thing,&amp;nbsp;we have disabled tracking of base pages (we have single page application in React), what should I set into the parent then? VirtualPage? even if this object might have been 'ended and reported' already? or should I do something like this? but it will probably create new vPage hit, right?&lt;/P&gt;
&lt;PRE&gt;function report(msg) {
 const vPageView = new ADRUM.events.VPageView({url: url});
 vPageView.start();

 var errorm = new ADRUM.events.Error();
 errorm.msg(msg);
 errorm.parent(vPageView);
 ADRUM.report(errorm);

 vPageView.end();
 ADRUM.report(vPageView);
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734240#M8867</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-03-31T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: tracking virtual pages - work with VPageView</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734241#M8868</link>
      <description>&lt;P&gt;let's continue in the other topic/question for the case of errors &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.appdynamics.com/t5/EUM-and-Analytics-Mobile-Metrics/manual-tracking-of-errors/m-p/23595#M59" target="_blank"&gt;https://community.appdynamics.com/t5/EUM-and-Analytics-Mobile-Metrics/manual-tracking-of-errors/m-p/23595#M59&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 11:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/tracking-virtual-pages-work-with-VPageView/m-p/734241#M8868</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-03-31T11:07:22Z</dc:date>
    </item>
  </channel>
</rss>

