I am trying to add tracking tags to my Web site. Event and tracking rules are working fine, but not the transactional ones.
_gaq.push(['_addTrans', commande, '', tot_commande]);
foreach(...){
_gaq.push(['_addItem', commande, code_form[i], nom_form[i], "", prix[i], nbr_part[i]]);
}
_gaq.push(['_trackTrans']);
Example with var
_gaq.push(['_addTrans', 59, '',1772]);
_gaq.push(['_addItem', 59,K52171088-2013-20130612,Déchets industriels...,1772,1]);
I have no error in my console, but in my Google Analytics dashboard I found nothing concerning the transactions.
Thanks for your help
always call _trackTrans after _trackPageview!
this was my prbleme ! explained here: Google analytics doc
Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.