dmurph / jgoogleanalyticstracker

Automatically exported from code.google.com/p/jgoogleanalyticstracker
MIT License
1 stars 2 forks source link

typo in GoogleAnalyticsV4_7_2 #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. track event
2.
3.

What is the expected output? What do you see instead?
URI parsing exception

What version of the product are you using? On what operating system?
downloaded latest from Download section

Please provide any additional information below.
replaced this "%7utmcmd%3D" to "%7Cutmcmd%3D" and it worked

Original issue reported on code.google.com by aleksei....@gmail.com on 27 Oct 2012 at 10:55

andrewswan commented 3 years ago

I discovered the same issue when inspecting the source code. It's clearly a programming error; everywhere else it uses %7C, which is a URL-encoded pipe character. These comments in the AnalyticsRequestData class show how the utmcmd param is meant to be preceded by a pipe character:

    // referal:
    //utmcsr=forums.jinx.com|utmcct=/topic.asp|utmcmd=referral
    //utmcsr=rolwheels.com|utmccn=(referral)|utmcmd=referral|utmcct=/rol_dhuez_wheels.php
    // search:
    // utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=rol%20wheels