X theme broken GA?

Hello. Is there anyone who would explain to me step by step what I’m doing wrong with my Google Analytics?

Problem is that I have activated X theme Analytics plugin where I put my GA ID… but it still dont work… in GTM its showing red Tag and in my analytics its showing “Bad Event Tracking Code”… check the images below:

It’s so annoying… Also, I used to have GREEN Google Tag Manager Tag, but still, it used to say “Bad Event Tracking Code” in Analytics…

There is nothing like twice codes anywhere on my site in plugins or in the theme editors (X child or X)

Any suggestions?

Hi Viliam,

Thank you for writing in, that is not actually a theme issue. That is because by default, the plugin does not provide event tracking code. the plugin adds the general/basic tracking code only. In order to set up event tracking, additional steps are required, see the following documentation.

Event Measurement

How To Fix Common Google Analytics Notifications

Thanks,

thanks for the links!

Anyway, do you think that you would help me where to edit these values ?

The guy says -

How to fix it:
If you’re firing an event before you fire a pageview, adjust your code so that your event hits always come after the pageview hit. e.g.:

ga(‘send’, ‘event’, ‘eventCategory’, ‘eventAction’);
ga(‘send’, ‘pageview’);

becomes

ga(‘send’, ‘pageview’);
ga(‘send’, ‘event’, ‘eventCategory’, ‘eventAction’);

BUT when my analytics tracking code looks like this I don’t know where I have to put these values ://

Here is my actual code:

THAT Would be a priceless help.

Hello Viliam,

Thanks for the clarifications. Since you are using a GTag code, please disable the X theme Analytics plugin. Install Insert Headers and Footers plugin instead. You can then go to Settings > Insert Headers and Footers > Header and insert your GA code.

Hope this makes sense.

Yes it makes sence, I did it that day, the question is if the message in Analytics will disappear

I think there is error anyway because it’s showing 1 active user, but there is missing that white column for that time period which is wrong, what would cause that? Could I fire the events before page views so it doesn’t display properly? Or what would cause that, don’t you know?

It showing blue icon for tracking code in GTM extension but doesn’t seem to work properly… I know this is not X related question but who knows, I tried all options

Hey Viliam,

Because we are not experts in setting up tracking, your questions can only be answered by Google Analytics support or a third-party analytics consultant. This is also beyond the scope of our theme support.

Thank you for understanding.

Yes thats fine

Thanks, Viliam.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.