Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

$clienturl not recorded at API/remote-click-track.php (Tracking Clicks Remotely

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › $clienturl not recorded at API/remote-click-track.php (Tracking Clicks Remotely

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 9 months ago by netsuccess.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 29, 2014 at 7:21 am #11383
    netsuccess
    Member

    Hi,

    I have successfully create remote Click Tracking Code using this guide :

    http://www.tipsandtricks-hq.com/wordpress-affiliate/tracking-clicks-remotely-via-http-get-or-post-301

    The click throughs api data successfully recorded and appear at the Click Througs report on WP-Affiliate Dashboard.

    This is the code we used to call the API:

    $clientip = $_SERVER;

    $clientbrowser=$_SERVER;

    $clienturl = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;

    $remote_url = “http://ourserver.com/wp-content/plugins/wp-affiliate-platform/api/remote-click-track.php”;

    $remote_url = $remote_url.’?secret=’.$secretword;

    $remote_url = $remote_url.’&ap_id=’.$ap_id;

    $remote_url = $remote_url.’&clientip=’.$clientip;

    $remote_url = $remote_url.’&clientbrowser=’.$clientbrowser;

    $remote_url = $remote_url.’&clienturl=’.rawurlencode($clienturl);

    The Affiliate Id, Date, Time and IP Address are successfully recorded,

    but the Referal URL (clienturl) are not appear at the Click Throughs Wp Affiliate Dashboard. The Referal URL display as blank.

    I have enable the WP Affiliate Debug, and it also display the Referal URL is blank on the log file.

    I think this line is not correct :

    $remote_url = $remote_url.’&clienturl=’.urlencode($clienturl);

    Please help…

    August 30, 2014 at 12:08 am #65204
    admin
    Keymaster

    Before calling the API, have you tried echoing the content of the $clienturl variable to see if it has any data?

    August 31, 2014 at 12:20 am #65205
    netsuccess
    Member

    Problem solved.

    The clientbrowser also need to encode.

    Thank You

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ