Avatar of nsitedesigns
nsitedesigns
Flag for United States of America asked on

Google Analytics Not Tracking

I setup google analytics for wordpress site and installed Google Analytics Dashboard for WP plugin.  

Part of site is https and one page is http.  It's a long story.....

Anyways,  I put the setting in analytics to http figuring it would capture ALL activity.  To test, I had people go to my site and click around a bit.  The real time setting (which was setup yesterday) still show zero activity.  I then went in and changed the setting on the Tracking Options to https: and I clicked around a bit.  Still shows no real time activity.  

I am using the Google Analytics Dashboard for WP plugin.  It says there are no errors.  

Not sure what is wrong....
Google WorkspaceWordPressSearch Engine Optimization (SEO)Web ApplicationsAnalytics

Avatar of undefined
Last Comment
nsitedesigns

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jason C. Levine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
I see this TWICE in the code.  Not sure why it is there twice since I used the plugin to set it up.  The "UA" number is different than the UA number on my google analytics account.  Weird!  I deleted some of the numbers on the UA code below for security.

<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', 'UA-67....', 'auto');
  ga('send', 'pageview');

</script><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', 'UA-67......', 'auto');
  ga('send', 'pageview');

</script>

Open in new window

nsitedesigns

ASKER
If i uninstall the plugin, will that remove both instances cited above?
SOLUTION
Jason C. Levine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
the nice thing about the plugin is that i can view stats directly in wordpress.  I don't have to login to google analytics to view.  this plugin was recommended by google on their analytics site so i figured it did have some value. i will remove it and then reinstall. hopefully that will take away all UA references and I can begin again.  will let you know what happens.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
nsitedesigns

ASKER
crap. ok.  i deleted plugin but the scrip is still there.  not sure how to remove. any suggestions.
SOLUTION
Jason C. Levine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
Ok. I also have a message into theme maker to see if they can shed any light on this.
SOLUTION
Jason C. Levine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Lucas Bishop

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

accidentally

May not have been accidental :)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
Theme comes from studio press.  will check
Jason C. Levine

Okay, check the Genesis | Settings area in the backend.  There will be two boxes for scripts: one for top of the page, one for bottom.
nsitedesigns

ASKER
I removed the script from the box and all is good.  Thanks!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes