1
在這裏,我懷疑是否需要將名稱和值傳遞給此腳本,否則我們可以給出將存儲在Google Analytics服務器中的任何名稱和值。如何將值傳遞給自定義變量Google Analytics?
_gaq.push(['_setCustomVar',
1, // This custom var is set to slot #1. Required parameter.
'Items Removed', // The name acts as a kind of category for the user activity. Required parameter.
'Yes', // This value of the custom variable. Required parameter.
2 // Sets the scope to session-level. Optional parameter.
]);
_gaq.push(['_trackEvent',
'Shopping', // category of activity
'Item Removal', // Action
]);