I am trying to track the "agree" link
-
I am using Slimstat plugin (https://goo.gl/d3Jp)
and I was trying to attach it’s tracking function to the “agree” button on the popup, so that it can record the IP of people agreeing to the terms.
The Slimstat says it works by adding the javascript function to the onclick event of a link, (see the faq here: https://goo.gl/ZZLCx)
I am trying to do this and make it work, however, it appears I get a server error when I try to add it to the “emc2pdc-admin.php” file, at this location:
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>';
I am changing the code as such:
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>';
Can you help to see if there is something I may be missing?
Thank you ??
https://www.ads-software.com/extend/plugins/emc2-popup-disclaimer/
- The topic ‘I am trying to track the "agree" link’ is closed to new replies.