[Plugin: Google Analytics for WordPress] downloads tracking doesn’t work right with non-www domain
-
Tracking of downloads isn’t working right for non-www domains (i.e. blog.example.com). Technically, it actually works, but the tracked url looks bad (“/downloadsblog./path/to/file”). This is because of line 475 of googleanalytics.php:
$file = str_replace('www.',"",$file);
I fixed it locally by changing “www.” to “blog.”, but obviously there’s a general way to do this. Just thought I’d report it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Google Analytics for WordPress] downloads tracking doesn’t work right with non-www domain’ is closed to new replies.