5.8K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Goals Not Showing

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
Below is my code for a redirect page, as you can see the "event" is directly after the "pageview" call, what would a likely
scenario be for a pageview to be registered and not an event?

I have tens of thousands of these goals registering everyday and hundreds of them not, any insight would be appreciated.

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="robots" content="noindex" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Redirect</title> <meta name="final_url" content="[SNIPPED]" /> </head> <body> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '[SNIPPED]', 'auto'); ga('send', 'pageview'); ga('send', 'event', 'redirect', 'go', ''); </script> <noscript> <a href="[SNIPPED]">[SNIPPED]</a> </noscript> <script> function Redirect() { document.location.href = "[SNIPPED]"; } window.onload = function () { Redirect(); } </script> </body> </html>
1 Expert replyverified_user

Re: Goals Not Showing

Top Contributor
# 2
Top Contributor
Most likely the browser starts switching to the new page before the [async] event tracking is sent.
Mike Sullivan, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.