Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-08-07 10:42:46

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

[SOLVED] Generate reports? Content > Files > download count?

Just a quick curiosity – is there a way to have Textpattern generate reports about specific Admin-side details whether regularly, nightly – for example, or triggered by changes, every 10 new downloads – for example?

I don’t need to track much else for the time being other than Download Count.

Last edited by BryanA. (2018-08-17 03:06:24)


Voice Actor – starting up a site for that good book stuff.

Offline

#2 2018-08-07 10:56:53

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,269
GitHub

Re: [SOLVED] Generate reports? Content > Files > download count?

BryanA. wrote #313314:

I don’t need to track much else for the time being other than Download Count.

Sounds like a job for web stats. There’s nothing that I know in core beyond the number of total downloads to date (which for podcasts can be wildly inaccurate if you factor in bots, iTunes, and the like).

Something like Matomo might be worth a look, lots of juicy stats in there.

Offline

#3 2018-08-07 15:49:44

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Re: [SOLVED] Generate reports? Content > Files > download count?

Oh boy :) – the advantage to GoDaddy is a one-click Installatron gadget in CPanel. They had Matomo! But a 3.5 which I can upgrade I think when I want.

I wouldn’t have known what that was and probably paid $7.99 a month or something if success ever finds its way to the site. I appreciate the tip! I know that Download count can tick up unreliably, this helps.


Voice Actor – starting up a site for that good book stuff.

Offline

#4 2018-08-07 17:51:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [SOLVED] Generate reports? Content > Files > download count?

Hi Bryan,

Matomo is basically free and very easy to install if you opt to download it. It has auto upgrades through its back-end and it is recommended to install it on a separate database from txp as it has a tendency of bloating in size.

Re files stats. There is kuo_file_stats, listed there as “File access statistics (0.1).”


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2018-08-07 21:35:02

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,734
Website

Re: [SOLVED] Generate reports? Content > Files > download count?

If I’m not mistaken, all files that are accessed via their …/file_download/123/… link will be counted, even when accessed from outside textpattern.

If a file is accessed directly via its actual location domain.com/files/filename.ext the file download is not counted and you need some other means of tracking such as server logs or a web stats package like matomo or google analytics.


TXP Builders – finely-crafted code, design and txp

Offline

#6 2018-08-08 09:02:10

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,269
GitHub

Re: [SOLVED] Generate reports? Content > Files > download count?

jakob wrote #313330:

If I’m not mistaken, all files that are accessed via their …/file_download/123/… link will be counted, even when accessed from outside textpattern.

That’s my understanding, also. Renaming /files/.htaccess-dist to .htaccess will prevent direct downloads if the web server runs Apache.

Offline

#7 2018-08-13 13:51:52

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: [SOLVED] Generate reports? Content > Files > download count?

Hmm. My domains’ cpanel already shows which files are downloaded. For my sites with downloads, I have a downloads article.

Offline

#8 2018-08-17 03:05:59

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Re: [SOLVED] Generate reports? Content > Files > download count?

I’m still working out a lot of kinks in the site so it’s ready for “prime time,” but there’s a HUGE and I mean very big big disparity between Matomo which I really like, and the AWstats and Webalizer which I just found on the CPanel down low near the bottom of all sorts of stuff. Thank you JimJoe for making me look…

Matomo is like, ‘dude, remain calm, but no one likes your site or no one knows about it,’ which is cool, because I haven’t promoted it but to five or six friends and y’all Textpattern cowboys and girls.

awstats and webalizer are like, ‘DUDE! You’re a superstar! Holy sheep! You’re gonna be so rich!’ and it’s way too much for just robots and some passing RSS spiders or something. And the bandwidth is far more than my uploads (30MB a day per episode – 16th day this month, so, half a gig at most, right?) It says over 7 Gigabytes and thousands and thousands of visitors ?!?

So I appreciate the tips from you all! I’m terribly out of practice, not stupid, but never was a real whiz at this to begin with. So that’s my wrapping it up.

Solved (only to lead to other curiosities).


Voice Actor – starting up a site for that good book stuff.

Offline

#9 2018-08-17 07:59:05

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,269
GitHub

Re: [SOLVED] Generate reports? Content > Files > download count?

BryanA. wrote #313464:

Matomo is like, ‘dude, remain calm, but no one likes your site or no one knows about it,’ which is cool, because I haven’t promoted it but to five or six friends and y’all Textpattern cowboys and girls.

awstats and webalizer are like, ‘DUDE! You’re a superstar! Holy sheep! You’re gonna be so rich!’ and it’s way too much for just robots and some passing RSS spiders or something.

As a battle-hardened former podcaster from ~2006 onwards, your download stats will never be accurate. Spiders, previews, bots, the works. I remember when we used to gauge engagement with FeedBurner, and we’re going back many years. One morning I woke from obsessing over statistics the night before, and ended up poring over episode content instead. Numbers will drive you mad. Focus on the content (as I’m sure you are), make sure the usability of the site is top notch, and don’t look at the stats.

Offline

#10 2018-08-17 13:35:47

BryanA.
Member
From: Maryland, USA
Registered: 2007-08-12
Posts: 104

Re: [SOLVED] Generate reports? Content > Files > download count?

You’re totally right and I’ve had a good time listening again to the first episodes to create Show Notes and times in the episode when xyz is said or happens. It helps to keep me on track; it’s only been four weeks but it’s so tempting to get caught up in the wrong details instead of content.

That said – one final OP tidbit for anyone searching the Forums. In AWStats, you can enter CPanel and SkipHosts or exclude your own IP Address. It’s not intuitive but the directions at the following link were 100% spot on for me: Don’t count your visits in statistics. And it totally DOES include Download counts. :)

Now my measures will be far more realistic when or if I need them.


Voice Actor – starting up a site for that good book stuff.

Offline

#11 2018-08-17 14:53:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [SOLVED] Generate reports? Content > Files > download count?

Hi Bryan

I never installed AWStats in any of our websites but doesn’t it ask you to copy paste some code in your templates? If so just wrap the code in an <txp:if_logged_in> tag. With our analytics (excluding the cookie concent) I have .

<txp:if_logged_in>
<txp:else />
<script>
  script here
</script>
</txp:if_logged_in>

This means that the analytics scripts never load whenever I am logged in my site.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB