Re: [phpOpenTracker-general] how to track referrers?
Andreas Israel <[email protected]> Fri, 15 Apr 2005 08:08:12 +0200
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------020907000301050000010902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Good morning, Sergio Bayona schrieb: > thank you! > another question: is there an example of an API call that > uses 'range', 'range_start' and 'range_length'. It doesn't make much sense to combine all of them. Because 'range' has still a 'range_start' (now) and defined 'range_lenth' (see in http://phpopentracker.de/docs/en/api-reference.timeranges.html for details). | | > I am not sure what type of values 'range_length' takes. It takes integer numbers as seconds for argument. HTH Andreas > > Sergio > > ----- Original Message ----- > *From:* Andreas Israel <mailto:[email protected]> > *To:* [email protected] > <mailto:[email protected]> > *Sent:* Thursday, April 14, 2005 12:02 AM > *Subject:* Re: [phpOpenTracker-general] how to track referrers? > > Good morning, > > Sergio Bayona schrieb: > >>hello everyone, >> >>I am new to PhpOpenTracker. Could some one tell which API call to use to track >>top URL referrers? >> >> >> > If I understood it right, you want to get the top referers for > your site. > So you could try the following. > > there is a similar example at: > > http://phpopentracker.de/docs/en/api-reference.api-calls.top.html > > I took this ex. an changed it to referer. > > > ~~~schnipp~~~ > >|<?php > >$referers = phpOpenTracker::get( > > array( > > 'api_call' => 'top', > > 'what' => 'referer', > > 'range' => 'total', # change this to get less (http://phpopentracker.de/docs/en/api-reference.timeranges.html) > > 'limit' => 10 # change this to get more > > ) > >); > > >print_r($referers); > >?> >| > > ~~~~~schnapp~~~~~ > > > Have fun with it > > Andreas > > --------------020907000301050000010902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Good morning,<br> <br> <br> Sergio Bayona schrieb: <blockquote cite="mid001301c5412e$e7363e40$9c0f93cd@Delicioso" type="cite"> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <meta content="MSHTML 6.00.2900.2627" name="GENERATOR"> <style></style> <div><font face="Arial" size="2">thank you!</font></div> <div><font face="Arial" size="2">another question: is there an example of an API call that uses 'range', 'range_start' and 'range_length'.</font></div> </blockquote> It doesn't make much sense to combine all of them.<br> Because 'range' has still a 'range_start' (now) and defined 'range_lenth' (see in<br> <a class="moz-txt-link-freetext" href="http://phpopentracker.de/docs/en/api-reference.timeranges.html">http://phpopentracker.de/docs/en/api-reference.timeranges.html</a> for details). <code><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 85, 0);"><br> </span></span></code> <blockquote cite="mid001301c5412e$e7363e40$9c0f93cd@Delicioso" type="cite"> <div><font face="Arial" size="2">I am not sure what type of values 'range_length' takes.</font></div> </blockquote> It takes integer numbers as seconds for argument.<br> <br> HTH<br> <br> Andreas<br> <blockquote cite="mid001301c5412e$e7363e40$9c0f93cd@Delicioso" type="cite"> <div> </div> <div><font face="Arial" size="2">Sergio</font></div> <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"> <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div> <div style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b> <a title="[email protected]" href="mailto:[email protected]">Andreas Israel</a> </div> <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="[email protected]" href="mailto:[email protected]">[email protected]</a> </div> <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Thursday, April 14, 2005 12:02 AM</div> <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [phpOpenTracker-general] how to track referrers?</div> <div><br> </div> Good morning,<br> <br> Sergio Bayona schrieb: <blockquote cite="mid20050414.fQN.17548900@localhost" type="cite"> <pre wrap="">hello everyone, I am new to PhpOpenTracker. Could some one tell which API call to use to track top URL referrers? </pre> </blockquote> If I understood it right, you want to get the top referers for your site. <br> So you could try the following.<br> <br> there is a similar example at:<br> <br> <a class="moz-txt-link-freetext" href="http://phpopentracker.de/docs/en/api-reference.api-calls.top.html">http://phpopentracker.de/docs/en/api-reference.api-calls.top.html</a><br> <br> I took this ex. an changed it to referer.<br> <br> <br> ~~~schnipp~~~<br> <pre class="programlisting"><code><span style="color: rgb(0, 0, 0);"><span style="color: rgb(17, 61, 115);"><?php $referers </span><span style="color: rgb(0, 85, 0);">= </span><span style="color: rgb(17, 61, 115);">phpOpenTracker</span><span style="color: rgb(0, 85, 0);">::</span><span style="color: rgb(17, 61, 115);">get</span><span style="color: rgb(0, 85, 0);">( array( </span><span style="color: rgb(85, 0, 0);">'api_call' </span><span style="color: rgb(0, 85, 0);">=> </span><span style="color: rgb(85, 0, 0);">'top'</span><span style="color: rgb(0, 85, 0);">, </span><span style="color: rgb(85, 0, 0);">'what' </span><span style="color: rgb(0, 85, 0);">=> </span><span style="color: rgb(85, 0, 0);">'referer'</span><span style="color: rgb(0, 85, 0);">, </span><span style="color: rgb(85, 0, 0);">'range' </span><span style="color: rgb(0, 85, 0);">=> </span><span style="color: rgb(85, 0, 0);">'total'</span><span style="color: rgb(0, 85, 0);">, # change this to get less (<a class="moz-txt-link-freetext" href="http://phpopentracker.de/docs/en/api-reference.timeranges.html">http://phpopentracker.de/docs/en/api-reference.timeranges.html</a>) </span><span style="color: rgb(85, 0, 0);">'limit' </span><span style="color: rgb(0, 85, 0);">=> </span><span style="color: rgb(17, 61, 115);">10 # change this to get more </span><span style="color: rgb(0, 85, 0);">) ); </span><span style="color: rgb(17, 61, 115);">print_r</span><span style="color: rgb(0, 85, 0);">(</span><span style="color: rgb(17, 61, 115);">$referers</span><span style="color: rgb(0, 85, 0);">); </span><span style="color: rgb(17, 61, 115);">?> </span></span></code></pre> ~~~~~schnapp~~~~~<br> <br> <br> Have fun with it<br> <br> Andreas<br> <br> <br> </blockquote> </blockquote> <br> </body> </html> --------------020907000301050000010902--