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