Sometimes I see (NaN) as the value?
|
|
This is a great script, much better than similar alternatives. But sometimes I see (NaN) as the value, instead of the actual number. Any ideas? Thanks,
|
|
|
A colleague of mine (who knows a bit about javascript, unlike me!) solved this problem. The issue is that the following line: var absoluteSource = rowCells[2].textContent.replace(/\s/g, ''); is incorrect and should be: var absoluteSource = rowCells[2].textContent.replace(/,/g, ''); It works fine when you modify the script. |
|
|
Awesome, thanks! Also, if you want to skip over the % Change rows when comparing dates, you can edit the script like this: function calcAbs() {
|
|
|
I tried this addition to the script, but it stopped it from working at all. I have reverted to the previous version again. |
|
|
Another point about the script.
|
|
|
Thanks everybody! Sorry for waiting, i didn't received notifications about topics and comments, but now will : ) tysonlee19 tell me please at what page you get NaN values, Brendan Hall's changes is not correct, resulting value will be wrong! And i made changes to "% Change" detection, now it should works in all international GA interfaces |
|
|
Thanks for the revised script - seems to work perfectly now! |
![]() ![]() |
Hi I am very interested in this function -- Do I need to copy and past this code into all of my webpages? // ==UserScript==
function calcAbs() {
if(document.getElementById('f_table_data')) {
And where at the bottom before the GA code?? Or should it automatically work if this set of tools is downloaded? http://www.vkistudios.com/tools/firefox/betterga/ Thanks Marcos |

