If you are working on Cloudflare with the "mod_pagespeed" ON the execution of the tracking script will be escape.

The solution is to turning off the "mod_pagespeed" for the pages with the tracking script.