magento - google analytic prolem with event and customvar -
i have problem google analytic .
here code :
<script> function trackregister() { if(dataform.validator.validate()) { _gaq.push(["_setcustomvar",4,"type","besogende-med-konto",1]); _gaq.push(['_trackevent', 'activatevisitorprofiletracking', 'activatevisitorprofiletracking']); _gaq.push(['_trackevent', 'konto-oprettet', 'engage', 'personlig-konto-oprettet']); } } i call trackregister function when click submit button page redirect result page ,but receive activatevisitorprofiletracking event on google analytic report. don't know why .anyone can me? thank :d
based on description of how calling it, sounds maybe page being redirected before 2nd _trackevent call has chance execute. try wrapping redirect in settimeout , or wrapping ga code code detect status of ga calls , redirect when returns complete
Comments
Post a Comment