google analytics - Visitor Level Custom Variable showing NO Sessions, Pageviews, etc -
I have a site where I am using GA and setting a visitor level custom variable and then I'm firing an incident to set up. By the way:
_gaq.push (['_ setCustomVar', 5, 'visitor' ',' some value ', 1]); _gaq.push (['_ trackEvent', 'VisitorStats', 'Setting', 'Visitor ID', 1, Satya]);
Now, every time that visitor comes to the site, or makes a pageview, the session and pageviews should be inserted into the bucket for that custom variable - all right?
However, when I look at the report in GA, I see only the values for the "new users" metric. Nothing to "session" of "pageview"
Can you explain this behavior? Do I need to "set" custom variables with _trackPageview instead of _trackEvent?
Below the image of GA - showing values in the custom variable and 0 bizarre result of sessions and 0 pageviews.
Additional information pair went to respond to comments, is something that requires information called in a JavaScript function actually _setCustomVar and _trackEvent which includes on-site as part of the API. Sites that support the function of multiple tracking code, so we are in the tracking code - and inside the function, we create a tracker for the tracking code. Here's the code:
window._gaq = window._gaq || []; (Function () {function setTrackingVariable (webPropertyId, trackingValue) {_gaq.push ([ 'tracker._setAccount', webPropertyId]); _gaq.push ([ 'tracker._setCustomVar', 5, 'tracking Wheriabl, tracking value, 1 ]); _gaq.push (['tracker._trackEvent', 'tracker', 'setcars', 'tracking variable', 1, true]);}}) ();
Comments
Post a Comment