Forum
Welcome, Guest
Please Login to access forum.
Re:Tracking pdf downloads (1 viewing) 
Go to bottom
TOPIC: Re:Tracking pdf downloads
#1815
John Dagelmore
Admin
Posts: 3881
User Offline
Re:Tracking pdf downloads Karma: 84  
Hello Chris,

i will try to explain you better

You need to add a custom onclick code to the link that point to the server document, in your case the link that holds

Code:

/images/Certifications/FS_546257.pdf
The src should be as in the example below, where the numeric ID value is the same of the event record created in the backend side, supposed to be named accordingly to the document to track,
Code:

onclick="document.getElementById('trackdownload').src='http://mysite.com/index.php? option=com_jrealtimeanalytics&track=1'"
The iframe src doesn't need any change, it must be empty as reported in the documentation example. The final code will look like this:
Code:

<a href="http://mysite.com/images/Certifications/FS_546257.pdf" onclick="document.getElementById('trackdownload').src='http://mysite.com/index.php? option=com_jrealtimeanalytics&track=1'">Download my document bla bla bla</a> <iframe id="trackdownload" style="display:none" src=""></iframe>
The src value of the link must be the same of that specified in the event details in the backend list for the field 'Set custom url'
Code:

http://mysite.com/index.php? option=com_jrealtimeanalytics&track=1
Sorry if it's sound a bit tricky However hope to have explained a bit better Kindest regards John
 
Logged Logged  
  The administrator has disabled public write access.
      Topics Author
    thread link
Tracking pdf downloads
The Allied Group
    thread link
thread linkthread link Re:Tracking pdf downloads
John Dagelmore
    thread link
thread linkthread linkthread link Re:Tracking pdf downloads
Chris Matthews
    thread link
thread linkthread linkthread linkthread link Re:Tracking pdf downloads
John Dagelmore
Go to top