WordPress.org

Ready to get started?Download WordPress

Forums

WP SlimStat
[resolved] Trying to track a click (2 posts)

  1. usascholar
    Member
    Posted 1 year ago #

    Hi,

    I am using this plugin "EMC2 Popup Disclaimer" http://goo.gl/5hwHi
    and I am trying to use the code in your FAQ: onclick="if(typeof ss_track == 'function') ss_track(event, 5, 'clicked on first link');"

    I am adding it to the file (emc2pdc-admin.php) that generates the code for the agreement buttons in this pop up that this plugin creates, but it doesn't seem to work.

    This is the code I am trying to edit:

    echo '<p class="linkwraps"><a class="fancybox agree" href="#">'.$settings['accept_text'].'</a> <a class="fancybox disagree" href="'.$settings['redirect_url'].'">'.$settings['decline_text'].'</a></p>';

    This is what I tried, and nothing happens. I do not see that it was recorded.. (Ok the code below keeps on reflecting yours but it is this wordpress editor that is correcting it, but I was actually entering '&# 39;' for the ticks such as this one ' (I hope you know what I mean):

    echo '<p class="linkwraps"><a class="fancybox agree" href="#" onclick="if(typeof ss_track == 'function') ss_track(event, 5, 'User Agreed To Clickwrap Privacy Policy And Terms And Conditions');">'.$settings['accept_text'].'</a> <a class="fancybox disagree" href="'.$settings['redirect_url'].'">'.$settings['decline_text'].'</a></p>';

    I have also tried it this way, but I get a server error:

    echo '<p class="linkwraps"><a class="fancybox agree" href="#" onclick="if(typeof ss_track == 'function') ss_track(event, 5, 'clicked on first link');">'.$settings['accept_text'].'</a> <a class="fancybox disagree" href="'.$settings['redirect_url'].'">'.$settings['decline_text'].'</a></p>';

    I am not a pro at this but would like your feedback on how I can track this link by IP address, and then create a report to keep track of the IP's that agreed to the terms by clicking on the link.

    Thank you. :)

  2. camu
    Member
    Plugin Author

    Posted 1 year ago #

    Contact me to troubleshoot your issue

    http://www.duechiacchiere.it/contatto

    Thanks

    PS: a vote for my plugin would be a nice way to say thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic