User Post
3:04 am April 22, 2009
dumpuse
Member
posts 13
Hello,
Thank you for keeping this useful forum.
I am wondering is it possible with Awstats to track the most popular links accessed from a webmail.
The webmaster is sending a webmail every month trough a subscriber list to a large number of potential visitors.
It contains a list of items to click or download from our web site (in different subdirectories).
Is there a way to track downloads and hits of the users that use the webmail as entry point.
Many thanks,
Nick
3:24 am April 22, 2009
Jean-Luc
Admin
posts 1063
Hi,
If the URL's used in the mails are not used anywhere else on the web, then it is easy to monitor them with an extra section. To make these URL's unique, you can add an unused variable in the query string of the URL or you can use a URL that will redirect to the landing page.
Examples:
- landing page : http:/ /ww w.example.com/mypage.php?product=abc
- URL in email : http:/ /ww w.example.com/mypage.php?product=abc&mail=yes
or
- landing page : http:/ /ww w.example.com/mypage/
- URL in email : http://ww w.example.com/mypage/redirect.html
where /mypage/redirect.html automatically redirects to /mypage/ .
9:17 am April 22, 2009
dumpuse
Member
posts 13
Hi Jean-Luc,
Many thanks for your help. I am a starter with Awstats, so it is really appreciated.
In case of the first option the following Extra section should be what I need?
ExtraSectionName8="TOP 20 Clicks from the Webmail" ExtraSectionCodeFilter8="200 304" ExtraSectionCondition8="URLWITHQUERY,.*mail=yes" ExtraSectionFirstColumnTitle8="Links" ExtraSectionFirstColumnValues8="URLWITHQUERY,(.*)" ExtraSectionFirstColumnFormat8="%s" ExtraSectionStatTypes8=HP MaxNbOfExtra8=20 MinHitExtra8=1
Regards
1:20 pm April 22, 2009
Jean-Luc
Admin
posts 1063
Looks good to me.
2:39 am April 24, 2009
dumpuse
Member
posts 13
Jean-Luc, thanks for the support.
I will still have to experiment with the above ExtraSections. It generates an empty report , although there are Appache logs such as:
194.1.2.3 – - [24/Apr/2009:09:44:25 +01 00] “GET /folder/belgium/nl/news_board/ toolbox-en-pratique HTTP/1.1″ 200 48694 ”http:/ /mysite.com/folder/belgium/nl/n ews_board/toolbox-en-pratique?mail=yes” ”Mozilla/6.0 (compatible; MSIE 7.0a1; Windows NT 5.2; SV1)” “I18N_LANGUAGE=\\” cs”" 1540883
I have changed the setting to URLWithQuery=1, but still no records in the report.
Best regards.
3:50 am April 24, 2009
dumpuse
Member
posts 13
OK, Seems that my LogFormat is not appropriate:
LogFormat = " %host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot %other %other
I think, i should use %query instead.
Regards.
4:06 am April 24, 2009
Jean-Luc
Admin
posts 1063
Hi,
Regarding your example, note that the extra section must disregard this line, because ?mail=yes is in the referrer field and not in the URL field.
You do not need %query . I believe that your LogFormat is okay, although you should probably replace %other by %otherquot for the next-to-last field.
4:09 am April 24, 2009
Jean-Luc
Admin
posts 1063
Also, check that you have
URLWithQuery=1
in the AWStats config file.