Search this site!

Return to the CSB Support home page
Download Counter
Description:
Do you use the Trellix 'File Download' web gem to allow visitors to download a particular file? If so, here's a way to count how many times visitors have download that file!
How to use:
Preliminary:

1. Go to www.downloadcounter.com and sign up

2. Using your browser, view your page that has your 'File Download' link.  Move your mouse cursor over the link and record the exact, full name of the file.  

3. For example, if you go to my FAQ page that has the PA patch, here is the full file name:

http://www.swgalleries.com/kwsupport/trellix/HTMLobj-341/PA-TrellixFix.reg

Create Counter:

4. Go back to www.downloadcounter.com, and click to create a new counter.  You will be asked to enter two pieces of information: (a) a name for the counter, and (b) the download URL

5. In my case, I named the counter 'kw0001', and the download URL is what I listed in step 3 above!

6. A new screen will display with two pieces of code that you can copy and paste into your Trellix page. The first is the code that will be used in place of your File Download web gem.  The second is a piece of Javascript you can use to display how many times the file has been previously downloaded.

Modify your Trellix page:

7. Let's concentrate on the first code, as it is the important one for now.  This is the HTML code that will replace your File Download web gem.  Now, here is where we must be careful.  

8. First, do not delete your current File Download web gem.  
Rather, we want to try to hide it somehow. One idea would be to  modify the File Download web gem and rename the link text in part 2 of the web gem to a single underscore (_) character and move the web gem to the end of your page.

9. Then type in a new text field that will become your new "click here to download".  Highlight the text, right click, then click on 'Vreate link to URL or File" and in the window that appears type or paste the code that was created for you.



Example:
Here is the original file download web gem link. Place your cursor over it to see the file name generated.


Now here is the new link to download the file:

This file has been downloaded  times already!
Download the code
Other information:

Source code:
(line you may need to modified are bold faced)