Page Level Custom Variable


#1

Hi,

Please help me fix an issue on page level custom variable.
I am setting a custom variable to record the page load time but I am not able to get it working.
I had gone through the #1700 ticket Piwik has provided but still not able to track this custom variable.
This feature is quite necessary for measuring the performance of the page each time.

I had also gone through the ga code where they have included code for tracking the performance of the page ,but in the value field in ‘setCustomVariable’ I am not able to pass the variable storing the value.Also I am using the asynchronous piwik tracking code.

Please help me fix this issue.
Looking forward for your reply

Thanks :slight_smile:


(Matthieu Aubry) #2

we just had a bug report at JS tracker: setCustomVariable does not work when the value is an int/float · Issue #2931 · matomo-org/matomo · GitHub

Please grab the latest piwik.js from: http://dev.piwik.org/svn/trunk/piwik.js

and try again?


#3

Hi,
Thank you for the reply.
I modified the .js file with the new file but still I am not able to track the custom variable. Also attached is the screen shot of the output received.
PFB the code I have used for tracking the custom variable.

Thanks :slight_smile: