PDA

View Full Version : NEW FEATURE: Specify Download Types


webmaster
11-28-2007, 10:23 AM
Add optional javascript tag. For example if you wanted to track javascript files only - specify this in the code.

sc_download_type = "js";

If you only wanted to track zip files and pdf files added the following tag.

sc_download_type = "zip|pdf";

Could we specify which filetypes we want tracked as downloads?

I actually want to track .js files, but I am not interested in PNG or any other images.

Vince

Tamas Kalman
11-28-2007, 12:08 PM
Hey,

this feature is supported in SC4 now:
you can define a variable in the SC script like:

var sc_download_type = 'mp3|pdf';

in this way you will override the default download types with these file types!

Tamas Kalman

Add optional javascript tag. For example if you wanted to track javascript files only - specify this in the code.

sc_download_type = "js";

If you only wanted to track zip files and pdf files added the following tag.

sc_download_type = "zip|pdf";

webado
11-28-2007, 12:19 PM
Oh great, I was going to ask for other file types to be added too :)

PromaneX
11-28-2007, 12:59 PM
Is it possible to have it track downloads from IPBs attachment system?

ie: index.php?act=attach&type=post&id=123456 leads the user to a file (whatever it is that is in that attachment) but clearly we cant just specify php as a downloadable file type :)

webado
11-28-2007, 01:02 PM
I don't see how this could be done.

PromaneX
11-28-2007, 01:20 PM
Me either but im not a javascript programmer, we can hope though :D

Judy7
11-28-2007, 01:25 PM
Hi,

It's keeping track of all my visits even though I placed a block on that, but has not registered any by other visitors.

Judy7


mycooltopics.com

Car Guy
11-30-2007, 06:32 PM
Download tracking is a great idea, I'm sure a lot of users will really appreciate this new feature.

I've seen the samples of code above.

Could you please give a list of track-able file types, and the code syntax?

Thanks,
Richard