Zum Inhalt springen

Datensatz Statistik

Erstellt am 22. Juni 2006 · 3 Antworten · letzte Antwort am 23. Juni 2006

Tags: Frage

Gottfried19 ·

Hallo Forennutzer,

ich habe folgendes Problem:

Ich verwende Plugins wie tt_news wo ich einen Datensatz einpflege und dann im FE die Benutzer per LIST auf die SINGLE Ansicht gelangen. Nun würde ich gerne ein Plugin haben, dass mir von jeder NewsID eine Zugriffsstatistik bieten kann. Bis jetzt verwende ich AWStats&Co, wobei ich hier nur generell von der Newsseite Zugriffsstatistiken erhalte und nicht von jeder News(ID) einzeln.

Gibt es so ein Plugin was das kann? Bzw hat wer eine Ansatzidee wie sowas zu realisieren wäre?

Ich hoffe ich habe mich verständlich ausgedrückt,
Danke, liebe Grüße
Gottfried

woida ·

Du kannst awstasts so konfigurieren (siehe Handbuch auf der awstats Homepage), daß auch die Aufrufparameter ausgewertet werden. Verwendest du realurl solltest du sowieso die einzelnen News identifizieren können.

Ansatzidee für eine Extension: Du suchst die einen Hook aus der DisplaySingle und machst ein Datenbankupdate (IP-Lock evtl. noch beachten).

Gottfried19 ·

danke für deine tipps

es geht aber nicht nur um das news plugin, da funktioniert realurl und damit funktionierts auch wie ich sehe.

ich werd das mal mit awstats antesten das es aufrufparameter auswertet

liebe grüße

Gottfried19 ·

hm leider bin ich etwas php beschränkt

folgendes habe ich gefunden und ich denke ich bin am richtigen pfad:

Example 1: Tracking Product orders
Image your web site is an e-store that sells 80 different products. Each of them has an id. Imagine each time, someone make an order for product 49, the order.cgi script or order2.cgi script is called with, in URL query parameter, the id of the product, meanings that you get in your log file a hit that looks like this:
GET /cgi-bin/order.cgi?productid=49&session=A0B1C2

So this is how you need to setup your ExtraSection to track your product orders:
ExtraSectionName1="Product orders"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\/cgi\-bin\/order\.cgi|URL,\/cgi\-bin\/order2\.cgi"
ExtraSectionFirstColumnTitle1="Product ID"
ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=100
MinHitExtra1=1

# ExtraSectionNameX is title of your personalized chart.
# ExtraSectionCodeFilterX is list of codes the record code field must match.
# Put an empty string for no test on code.
# ExtraSectionConditionX are conditions you can use to count or not the hit,
# Use one of the field condition (URL,QUERY_STRING,REFERER,UA,HOST,extraX)
# and a regex to match, after a coma. Use "||" for "OR".
# ExtraSectionFirstColumnTitleX is the first column title of the chart.
# ExtraSectionFirstColumnValuesX is a string to tell AWStats which field to
# extract value from (URL,QUERY_STRING,REFERER,UA,HOST,extraX)
# and how to extract the value (using regex syntax). Each different value
# found will appear in first column of report on a different row. Be sure
# that list of different possible values will not grow indefinitely.
# ExtraSectionFirstColumnFormatX is the string used to write value.
# ExtraSectionStatTypesX are things you want to count. You can use standard
# code letters (P for pages,H for hits,B for bandwidth,L for last access).
# ExtraSectionAddAverageRowX add a row at bottom of chart with average values.
# ExtraSectionAddSumRowX add a row at bottom of chart with sum values.
# MaxNbOfExtraX is maximum number of rows shown in chart.
# MinHitExtraX is minimum number of hits required to be shown in chart.

So nun hab ich mir meine typo3conf/ext/cc_awstats/awstats/awstats.conf her genommen und folgendermaßen krampfhaft editiert. Es geht um den Immovable Manager und die URL zu den jeweilige Angeboten lautet www.meinehomepage.com/index.php?id=33&no_cache=1&product=4&type=0

ExtraSectionName1="product"
ExtraSectionCodeFilter1=""
ExtraSectionCondition1="URL,\&(product=)$"
ExtraSectionFirstColumnTitle1="product"
ExtraSectionFirstColumnValues1="URL,product=([^&]+)"
#ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PHB
#ExtraSectionAddAverageRow1=0
#ExtraSectionAddSumRow1=1
MaxNbOfExtra1=200
MinHitExtra1=1

Bin ich am Holzweg? Im Moment hab ich echt keinen Plan wies weitergehn soll. Aja im AWStats Backend hat er nun ganz unten für meine Products eine Statistiktabelle erstellt wo halt nichts drin steht weils nicht funktioniert.

Bitte um Rat 🙂! Danke