You have the code in the source file twice…you need to use just one method (properly).
You really don’t need a plugin for this…especially if using a child theme.
Remove the plugins.
At Google Analytics account, add this website and then grab the embed code from Google. That code is then pasted into header.php of your child theme just above </head>.
Thanks for your help Seacoast Web Design!
I’ve deactivated the plugins and I went into the header.php of my child theme and entered the google analytics code from their site just above </head>
I also deleted the other google analytics tracking codes that I entered in cpanel.
I’m still getting the same “Tracking Not Installed” message…
I feel like it’s a simple solution, but I can’t figure it out!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Looks like you added it just above the “<head>” element.
Make sure you do what you said:
I went into the header.php of my child theme and entered the google analytics code from their site just above </head>
Hi Andrew,
I don’t understand. Wasn’t I supposed to add it above </head>?
Or do you mean below?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
There are two elements named “head”;
1.
<head>
2.
</head>
The analytics code should be just above the no.2 element.
Okay, I got it! Thanks for your patience, I’m learning a ton!
I just did that and still no tracking…
Is there something else I can try?
Thanks so much for your help, Andrew!
Are you using a server caching plugin?
Hi again Seacoast,
Thanks for persisting!
No, I’m not. I’ll search one out and try it…stay tuned!
I just installed Nginx Cache Controller and still no tracking…
I’m completely stumped.
π
You need to have cache off or cleared after site changes…
I just cleared all my caches, then deactivated the plugin.
STILL no tracking!
I really appreciate your help, Seacoast.
You need to have the actual site listed at Google…did you list //http://www.anniehearts.com/blog?
ga('create', 'UA-41719551-1', 'anniehearts.com');
this is not where the tracking code actually is…why are you using the iframe at root…don’t…review how to put wp in a sub-directory and have it work at root…
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Have you verified if your Google analytics account shows any results after inserting the code?
Krishna – there’s no visitors appearing in “Reporting.”
Seacoast – I’m trying to wrap my head around the link you attached.
I created an html snippet for the iframe on my iWeb site. I’m using wordpress for my blog (main) page and for the “my story” page.
So you’re saying I should not use an html snippet? That I need to make a new file for the iframe right in my cpanel?
Thanks for your patience – I’m still reading the link you sent but I didn’t want to leave you hanging!