Cyril N.
Cyril N.

Reputation: 39889

Huge drop in Google Analytics after site update

I released a new version of my website today and with the old version, I was around 90 visitors an hour, and after the update, it dropped to around 20 visitors.

I don't know what went wrong. Here's the stats:

Huge drop between 15:00 and 16:00

As you can see, a drop occurred between 3pm and 4pm and drop to finally get to 0 since then.

I added an httpS connection, but the non www and http all redirects to https://www automatically. The tracker is the same, I only added

ga('set', 'forceSSL', true);
ga('set', 'appVersion', '2');
ga('send', 'pageview');

There is only one page (it's a basic app), so there is no other page that could have the tracker removed.

Now, I'm wondering something, when I start the tracker, I send this info :

ga('create', 'UA-XXXXX-X', 'voilanorbert.com');

shouldn't it be ga('create', 'UA-XXXXX-X', 'www.voilanorbert.com');? (with "www.") Is this the issue?

Big Update: I decided to create a new tracker in Google to see if this was a reason, and yes it is! A few minutes after I changed it to the new tracker, the data went to 1 visitors per hour, to 18 in real time! There is clearly a problem in Google Analytics!

Upvotes: 0

Views: 170

Answers (1)

Julien Coquet
Julien Coquet

Reputation: 217

Your tracking code was flawed. This does not imply Google Analytics does not work.

  • The appVersion parameter is reserved for mobile apps and not for the web collection API.
  • forceSSL is kind of obsolete now

When in doubt, stick to the regular tracking code or use Google Tag Manager.

Upvotes: 1

Related Questions