Mobile app version of vmapp.org
Login or Join
Gretchen104

: What might interfere with Google Analytics pageview tracking? I'm using Google Analytics to send and track a registration goal, based on a custom pageview. Basically, every time a user registers

@Gretchen104

Posted in: #GoogleAnalytics

I'm using Google Analytics to send and track a registration goal, based on a custom pageview.

Basically, every time a user registers and gets redirected to dashboard, I trigger a custom pageview using JS:

ga('send', 'pageview', {page: '/gapv/registration/success'});


The tracking works. However, when I compare the GA tracking with the number of registrations from the database of my website, the GA goal completion always shows around 10% less registrations.

I checked the tracking on various desktop browsers, all seems to be fine. Additionally, I hear that content blocking on mobile browsers gets more and more popular.

Is it possible that browser content blocker plugins might block my custom pageview from being fired? I send the pageview on DOM ready.

What else might explain the difference between my DB results and the GA goal count?

Any ideas are very welcome.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen104

1 Comments

Sorted by latest first Latest Oldest Best

 

@Merenda212

I send the pageview on DOM ready.


Assuming you mean on the DOMContentLoaded event, there's a problem all in itself. The tracking script is asynchronous and deferred, meaning that it purposely defers its loading (as to not block the rest of the webpage from loading) and isn't guaranteed to be fully complete when the DOMContentLoaded event fires. Try listening for the load event on window instead and send the hit then.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme