Closed (fixed)
Project:
Google Analytics Tokenizer
Version:
6.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
19 Apr 2011 at 14:33 UTC
Updated:
10 Mar 2013 at 22:49 UTC
This problem was originally posted on Google Analytics Contact Form, Webform, Rules Email,
theres a bug in class.gaparse.php that make impossible to show Keyword longer than 2 words.
original code (with wrong %s, that remove all after %20 char)
function ParseCookies(){
// Parse __utmz cookie
if (isset($this->utmz)) {
list($domain_hash,$timestamp, $session_number, $campaign_numer, $campaign_data) = sscanf($this->utmz, '%d.%d.%d.%d.%s');
the solved with a regular expressionthat include all char
function ParseCookies(){
// Parse __utmz cookie
if (isset($this->utmz)) {
list($domain_hash,$timestamp, $session_number, $campaign_numer, $campaign_data) = sscanf($this->utmz, '%d.%d.%d.%d.%[^.]');
Bye.
Comments
Comment #1
Brian294 commentedCommited to -dev version. It should be available when git refreshes with drupal.org. Please test it out when it becomes available and let me know what happens.
Comment #2
Brian294 commentedForgot to close this out. Spring cleaning!