Forum
Welcome, Guest
Please Login to access forum.
Document Download Tracking Issue (1 viewing) 
Go to bottom
TOPIC: Document Download Tracking Issue
#4145
Abhilash Rajan
Fresh Boarder
Posts: 4
User Offline
Document Download Tracking Issue Karma: 0  
Hi,

I am trying to track document downloads on our website and I have already read another post regarding the download tracking issue and it appears that I am having a similar issue as well.

Here is what I have -

Full download Code:

<a href="http://itso.int/images/stories/IAC-20/IAC-20-Convening-Letter-EN.pdf" onclick="document.getElementById('trackdownload'.src='http://itso.int/index.php?option=com_jrealtimeanalytics&track=69'">Refree.:10-29-15/DG-59</a> <iframe id="trackdownload" style="display:none" src="http://itso.int/index.php?option=com_jrealtimeanalytics&track=69"></iframe>

PS: An emoticon automatically gets added at the end of ('trackdownload ' )

Custom URL:
http://itso.int/index.php?option=com_jrealtimeanalytics&track=69

Here is the screenshot of event section:



I cannot figure out what I am doing wrong because the occurrences keep showing 0 for the document download.
 
Logged Logged  
  The administrator has disabled public write access.
#4146
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Document Download Tracking Issue Karma: 79  
Hi,

you are doing it wrong.

You must use the ID of the event, you are using a number 69 that makes no sense.

In the PDF docs you find detailed instructions and the sample code to use this technique:

Code:

<a href="http://mysite.com/document.pdf" onclick="document.getElementById('trackdownload').src='http://mysite.com/index.php? option=com_jrealtimeanalytics&track=1'">Download PDF</a> <iframe id="trackdownload" style="display:none" src=""></iframe>
where the value of the parameter 'track' is the event ID, the right column in the list. In your case the ID of your event named 'track69' is 2 so you will have http://mysite.com/index.php?option=com_jrealtimeanalytics&track=2 The 'src' attribute in the iframe can be left empty.
 
Logged Logged  
  The administrator has disabled public write access.
#4147
Abhilash Rajan
Fresh Boarder
Posts: 4
User Offline
Re:Document Download Tracking Issue Karma: 0  
Hi, thanks for the prompt response.

Here is the updated download code:

<a href="http://itso.int/images/stories/IAC-20/IAC-20-Convening-Letter-EN.pdf" onclick="document.getElementById('trackdownload'.src='http://itso.int/index.php?option=com_jrealtimeanalytics&track=2'">Refree.:10-29-15/DG-59</a> <iframe id="trackdownload" style="display:none" src=""></iframe>

After updating, I went back and downloaded the file again. Still showing 0 occurrence.
 
Logged Logged  
  The administrator has disabled public write access.
#4148
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Document Download Tracking Issue Karma: 79  
Hi,

to check if the link is correct and working take some tests.

Try to open directly the tracking URL in the browser: http://itso.int/index.php?option=com_jrealtimeanalytics&track=2&lang=en

and include the language if your website is multilanguage

Also open it in a new and different browser to ensure that the tracking is fresh.
 
Logged Logged  
  The administrator has disabled public write access.
#4149
Abhilash Rajan
Fresh Boarder
Posts: 4
User Offline
Re:Document Download Tracking Issue Karma: 0  
The document download requires a logging into the restricted part of the website. Do you think that might be the issue?

Just updated the download code to

<a href="http://itso.int/images/stories/IAC-20/IAC-20-Convening-Letter-EN.pdf" onclick="document.getElementById('trackdownload'.src='http://itso.int/index.php?option=com_jrealtimeanalytics&track=2&lang=en'">Refree.:10-29-15/DG-59</a> <iframe id="trackdownload" style="display:none" src=""></iframe>


Custome URL to
http://itso.int/index.php?option=com_jrealtimeanalytics&track=2&lang=en


Let's see.
 
Logged Logged  
  The administrator has disabled public write access.
#4150
Abhilash Rajan
Fresh Boarder
Posts: 4
User Offline
Re:Document Download Tracking Issue Karma: 0  
Works!!!

It appears that adding the language code fixed the issue.

Thank you so much.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top