Re: [phpOpenTracker-general] how to track referrers?
"Sergio Bayona" <[email protected]> Thu, 14 Apr 2005 13:16:54 -0700
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <001301c5412e$e7363e40$9c0f93cd@Delicioso> |
This is a multi-part message in MIME format. ------=_NextPart_000_0010_01C540F4.3A2DDFD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable thank you! another question: is there an example of an API call that uses 'range', = 'range_start' and 'range_length'. I am not sure what type of values 'range_length' takes. Sergio ----- Original Message -----=20 From: Andreas Israel=20 To: [email protected]=20 Sent: Thursday, April 14, 2005 12:02 AM Subject: Re: [phpOpenTracker-general] how to track referrers? Good morning, Sergio Bayona schrieb:=20 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.=20 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 =3D phpOpenTracker::get( array( 'api_call' =3D> 'top', 'what' =3D> 'referer', 'range' =3D> 'total', # change this to get less = (http://phpopentracker.de/docs/en/api-reference.timeranges.html) 'limit' =3D> 10 # change this to get more ) ); print_r($referers); ?> ~~~~~schnapp~~~~~ Have fun with it Andreas ------=_NextPart_000_0010_01C540F4.3A2DDFD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> <META http-equiv=3DContent-Type = content=3Dtext/html;charset=3DISO-8859-1> <META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY text=3D#000000 bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>thank you!</FONT></DIV> <DIV><FONT face=3DArial size=3D2>another question: is there an example = of an API=20 call that uses 'range', 'range_start' and = 'range_length'.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I am not sure what type of values = 'range_length'=20 takes.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Sergio</FONT></DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A [email protected] = href=3D"mailto:[email protected]">Andreas=20 Israel</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 [email protected]=20 = href=3D"mailto:[email protected]">phpopentracker-general@= berlios.de</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 14, 2005 = 12:02=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: = [phpOpenTracker-general] how=20 to track referrers?</DIV> <DIV><BR></DIV>Good morning,<BR><BR>Sergio Bayona schrieb:=20 <BLOCKQUOTE cite=3Dmid20050414.fQN.17548900@localhost = type=3D"cite"><PRE wrap=3D"">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=20 referers for your site. <BR>So you could try the = following.<BR><BR>there is a=20 similar example at:<BR><BR><A class=3Dmoz-txt-link-freetext=20 = href=3D"http://phpopentracker.de/docs/en/api-reference.api-calls.top.html= ">http://phpopentracker.de/docs/en/api-reference.api-calls.top.html</A><B= R><BR>I=20 took this ex. an changed it to = referer.<BR><BR><BR>~~~schnipp~~~<BR><PRE = class=3Dprogramlisting><CODE><SPAN style=3D"COLOR: rgb(0,0,0)"><SPAN = style=3D"COLOR: rgb(17,61,115)"><?php $referers </SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">=3D </SPAN><SPAN = style=3D"COLOR: rgb(17,61,115)">phpOpenTracker</SPAN><SPAN = style=3D"COLOR: rgb(0,85,0)">::</SPAN><SPAN style=3D"COLOR: = rgb(17,61,115)">get</SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">( array( </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'api_call' </SPAN><SPAN style=3D"COLOR: = rgb(0,85,0)">=3D> </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'top'</SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">, </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'what' </SPAN><SPAN = style=3D"COLOR: rgb(0,85,0)">=3D> </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'referer'</SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">, </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'range' </SPAN><SPAN style=3D"COLOR: = rgb(0,85,0)">=3D> </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'total'</SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">, # = change this to get less (<A class=3Dmoz-txt-link-freetext = href=3D"http://phpopentracker.de/docs/en/api-reference.timeranges.html">h= ttp://phpopentracker.de/docs/en/api-reference.timeranges.html</A>) </SPAN><SPAN style=3D"COLOR: = rgb(85,0,0)">'limit' </SPAN><SPAN style=3D"COLOR: = rgb(0,85,0)">=3D> </SPAN><SPAN style=3D"COLOR: rgb(17,61,115)">10 = # change this to get more </SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">) ); </SPAN><SPAN style=3D"COLOR: rgb(17,61,115)">print_r</SPAN><SPAN = style=3D"COLOR: rgb(0,85,0)">(</SPAN><SPAN style=3D"COLOR: = rgb(17,61,115)">$referers</SPAN><SPAN style=3D"COLOR: rgb(0,85,0)">); </SPAN><SPAN style=3D"COLOR: rgb(17,61,115)">?> </SPAN></SPAN></CODE></PRE>~~~~~schnapp~~~~~<BR><BR><BR>Have fun with=20 it<BR><BR>Andreas<BR><BR><BR></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0010_01C540F4.3A2DDFD0--