• Resolved SpenceDesign

    (@spencedesign)


    First, thanks for the great plugin!

    I am having trouble tracking PDF downloads that open in a new window being tracked.

    This code DOES NOT allow the file to open in a new window. It opens the PDF in the same window and the hit gets tracked.

    <a href="/path/to/my/download.pdf" target="_blank" onclick="ss_te(event,1,true)">Download file</a>

    If I remove the “true” parameter, the PDF DOES open in a new window properly, but IS NOT tracked by SlimStat.

    <a href="/path/to/my/download.pdf" target="_blank" onclick="ss_te(event,1)">Download file</a>

    Is there any way to allow a PDF download to open in new window and get tracked in SlimStat?

    Separate question:
    Also wondering if tracking can be triggered using “oncontextmenu” or “onmouseup” to track right clicks and middle clicks in case a user is using one of these methods for downloading a PDF instead of standard clicking. Example below does not seem to work, but you will see what I am aiming for.

    Something like this perhaps to track standard click and right clicks and onmouseup?
    <a href="/path/to/my/download.pdf" target="_blank" onclick="ss_te(event,1)" oncontextmenu="ss_te(event,2)" onmouseup="ss_te(event,3)">Download file</a>

    Any help would be greatly appreciated.

    Regards,
    SDesign

    https://www.ads-software.com/extend/plugins/wp-slimstat/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    Hi there,

    Thanks for testing these advanced features of my plugin ?? I will perform some tests next week and get back to you on this. As for using ss_te in conjunction with other events, yes you can.

    Camu

    Thread Starter SpenceDesign

    (@spencedesign)

    Camu,

    Any update on this? I really need to be able to track clicks on PDF’s that open in a new window. Thanks in advance for any additional information on this that you can provide.

    FWIW, a donation will be headed your way if we can get this figured out.

    Regards,
    SDesign

    Plugin Author Jason Crouse

    (@coolmann)

    Hi there,

    After inspecting the source code and performing some tests, unfortunately I realized that in order to track a PDF opening in a new window, I would have to partially rewrite the JavaScript function that takes care of that. Which is something I’m willing to do, just don’t know when. I’m swamped with high priority projects right now, and I can’t spend any time on my “hobby” at the moment.

    But I already added this to my todo list, so be assured that I won’t forget ??

    Thanks
    Camu

    Thread Starter SpenceDesign

    (@spencedesign)

    Thanks Camu,

    I look forward to the update. Wondering if you can also build right-click tracking functionality into the JavaScript with easy shortcode as my implementation is proving problematic. oncontextmenu=”” does not seem to function properly in my testing regardless of opening in new window or not.

    I just dropped you a $100 donation to show my appreciation for your work on this plugin. SlimStat really is a beautifully elegant WP tracking solutions.

    Keep me posted on the updates and hopefully right-click tracking.

    Regards,
    SDesign

    Plugin Author Jason Crouse

    (@coolmann)

    Hi there,

    first of all thank you so much for your donation, it shows that you understand how much time and knowledge I’ve invested in this plugin ??

    As for the new JavaScript, rest assured that it will be my top priority this and next week. I’m hoping to be able to release 2.7.1 before spring kicks in eheh.

    Camu

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP SlimStat] Any way to allow a PDF download to open in new window and get tracked?’ is closed to new replies.