I cannot get Google Analytics to track events. Code is below. I have tried hitCallback function and can confirm Google is receiving and responding but not recording!
I have a Goal set up with a 'Basket' category (equal to) and an event named 'Added To Basket' (equal to) with same capitalisation.
Have I missed something?
Managed to work it out after a lot of testing. The last parameter in the ga();
function is an integer not a decimal. My above example code does not due to the last parameter being 9.99
, it should be a whole number.
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.