Yes another mistake / possible flaw.
Please note:
don't use sever-side page cache with above script - obviously it will cause the first page visit to generate some referral the code, unless you create an exception in your cache (little bit complicated). Use a JS/cookie solution instead:
https://gist.github.com/transbetty/ffa7374d8f71667a1e44
Simplified algo:
is URL parameter present?
- yes
-- add params to all urls
-- set cookie
- no
-- check cookie new
-- check cookie old
-- add params to all urls from
--- new cookie
--- old cookie, delete old cookie
Sorry if I caused any issues. Learned it causes reporting issues only after deploying
__________________
Tranny Sites - tranny, fetish & BDSM porn site reviews by Betty
Tranny Ladies - online tranny dating and community portal
Transbetty - my personal blog (articles/photos/reflections)