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....
nsitedesignsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineDon't talk to me.Commented:
Did you verify the tracking code appears in view-source?

Are all users logged in when testing?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nsitedesignsAuthor Commented:
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

nsitedesignsAuthor Commented:
If i uninstall the plugin, will that remove both instances cited above?
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Jason C. LevineDon't talk to me.Commented:
The "UA" number is different than the UA number on my google analytics account.

Well, that's not good.

If i uninstall the plugin, will that remove both instances cited above?

Don't know, I don't use that plugin because I don't care enough about the stats to waste bandwidth embedding them in the dashboard.  For simple embedding of GA code via plugin, I use:

https://wordpress.org/plugins/google-analytics-for-wordpress/

If I need to play games, I manually insert the tracking the code via functions.php and hooks.
nsitedesignsAuthor Commented:
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.
nsitedesignsAuthor Commented:
crap. ok.  i deleted plugin but the scrip is still there.  not sure how to remove. any suggestions.
Jason C. LevineDon't talk to me.Commented:
Purge all caches, see if that removes the code.  If not, you will need to start going through theme files to see what is setting it.
nsitedesignsAuthor Commented:
Ok. I also have a message into theme maker to see if they can shed any light on this.
Jason C. LevineDon't talk to me.Commented:
Several themes and frameworks have a place to enter javascript for inclusion on all objects, so check the settings page.  You can also go through the wp-options table and search for any GA code there.  If you find it in the table, null out the entry.
Lucas BishopMarketing TechnologistCommented:
Part of site is https and one page is http.  It's a long story.....
In your GA account:
Admin > Property Settings > Default URL

Open in new window

~~ is this set to https or http?

The "UA" number is different than the UA number on my google analytics account.
Maybe the theme developer accidentally left their GA code hard-coded in the template?

Within the theme's folder do a search for files containing the text "UA-67...."
Jason C. LevineDon't talk to me.Commented:
accidentally

May not have been accidental :)
nsitedesignsAuthor Commented:
Theme comes from studio press.  will check
Jason C. LevineDon't talk to me.Commented:
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.
nsitedesignsAuthor Commented:
I removed the script from the box and all is good.  Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google Apps

From novice to tech pro — start learning today.