Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
commerce_post_affiliate_pro_track_js.patch | 2.01 KB | mh86 |
Comments
Comment #1
tobiasdeardorff CreditAttribution: tobiasdeardorff commentedI noticed the exact same bug today and came here to post the issue. This patch worked for me.