BookmarkSubscribeRSS Feed
DLROW
Quartz | Level 8

Hi - Can you please let me know how to write the program to count number of web hits for each month in SAS EG?

7 REPLIES 7
JOL
SAS Employee JOL
SAS Employee

Need more information, what does your data source look like?

DLROW
Quartz | Level 8

I was given an URL (website) and asked to get the hit count. I am not sure if this can be done from SAS. I did look into PROC HTTP which cannot do anything on this requirement I guess. I also searched but couldn't find any solution. My thought is, coding should be done on the website itself and I can not do any coding from SAS. Please suggest.

JOL
SAS Employee JOL
SAS Employee

SAS works on table (row, column) structured data.  You would need those hits imported into some sort of table file structure, or a delimited file that can be converted to a table.

DLROW
Quartz | Level 8

I thought so. Thank you.

ChrisNZ
Tourmaline | Level 20

There's no way you can get a hit count just by knowing the URL.

You need access to the log files.

Sajid01
Meteorite | Level 14

 One would need access to the access_logs on the server in order to count the web hits.

Consider using SAS Web Analytics. Have a look at theis paper https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/016-31.pdf 

DLROW
Quartz | Level 8

I'll look into it. Thanks.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 988 views
  • 0 likes
  • 4 in conversation