Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Tracking Anchored Pages + Tracking Forced Downloads

http://zschiller.com/stuff

I have all of the sub-pages of my website loaded with ajax, but I would like Mint to track when they’re visited. Every sub-page has a different anchor tag in the URL and I want Mint to track these as separate pages. Is this possible?

I also have all the downloadable files in a directory which isn’t accessible from the web, they’re accessed through a little PHP script I wrote. Is it possible to track those downloads with the downloads pepper?

Till
Third-Party Pepper Developer
Posted on Dec 28, '08 at 01:11 pm

Sure, but you’ll have to write your own module for the Downloads Pepper.

How would I go about doing that exactly? Is there any documentation?

Till
Third-Party Pepper Developer
Posted on Dec 28, '08 at 03:14 pm

No, just take a look at the phpbb and http module.

Has there been a solution developed to track forced downloads using the Downloads pepper?

(This thread should probably be moved to the Peppers forum.)

Till
Third-Party Pepper Developer
Posted on Feb 14, '10 at 06:05 am

Whats your idea of “forced downloads”?

We utilize a PHP script that forces the browser to download (save) the file rather than load it — specifically for MP3s. A typical download link looks like: http://domain.com/force-download.php?file=FILE_NAME.mp3

Till
Third-Party Pepper Developer
Posted on Feb 15, '10 at 06:35 am

There are multiple ways to do this. I’d call the track_request() function within your download script. Take a look at the /modules/ folder under /tillkruess/downloads/.

I don’t write PHP. ;)

Till
Third-Party Pepper Developer
Posted on Feb 16, '10 at 09:40 am

You can try to switch to the Downloads Pepper without your force-script, because the Pepper also sets the Content-Disposition to “attachment” which usually prevents in-browser-loading.

You must be logged in to reply. Login above or create an account