Google Analytics Report add "=" at the end of URLs

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 8, 2017   (RSS)

By Dave - November 8, 2017

Hi Yusuke, 

Google can add strings such as utm_source, etc to urls so get something like: viewer.php?123&utm_source=xxxxx
Reference: http://www.google.com/support/googleanalytics/bin/answer.py?answer=55578

We specifically strip these out in /lib/viewer_functions.php in the function: getLastNumberInUrl()

So I'm not sure what is causing the error.  Using the standard code: 

      'where'       => whereRecordNumberInUrl(0),

It should work with ?123 or ?123=

What HTTP Error Code or message is being returned?  Let me know how we can help!

Dave Edis - Senior Developer
interactivetools.com

Hi Dave,

Thank you so much for your quick reply and a beautiful answer!

Everything is clear now.

It wasn't exactly an error message so please disregard it.

Thanks again!

Yusuke