Hi!

The current code for including the track.js has a special handling for https, which uses ltrim. Unfortunately ltrim will remove any character of https:// in your url, meaning that if your url for example starts with 'h' it will be removed.
Attached patch reworks that code a bit, furthermore fixes the coding style and includes a PostAffTracker.setAccountId('default1');, according to the documentation http://support.qualityunit.com/417400-Clicks-referrals-tracking

CommentFileSizeAuthor
commerce_post_affiliate_pro_track_js.patch2.01 KBmh86
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tobiasdeardorff’s picture

I noticed the exact same bug today and came here to post the issue. This patch worked for me.