• Resolved usascholar

    (@usascholar)


    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. 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Trying to track a click’ is closed to new replies.