Hey,
Can you see your google analytics running here: https://analytics.google.com/analytics/web/ ?
Hannah
Hi I have added the header and footer scripts plugin. Fixed.
But it does not cause when I do not add it.
So sorry, I’m not sure I’m following. What exactly is your issue? Can you post a link?
Hannah
Hello To add the analyst code, I did not do the first thing first.
Then I did the second thing.
Why was not the first thing.
first thing:
have copied the header php file in the main theme. I got a child.
then I added the google analisty code to the view-editor. But the analyst code does not appear when I can not see the page source.
screen shot
http://iktisatnet.blogspot.com.tr/2018/02/child-thema.html
Second thing: https://ww.wp.xz.cn/plugins/header-and-footer-scripts/
From my understanding, it doesn’t need to show in the editor. You can follow the instructions here: https://www.kadencethemes.com/getting-started-google-analytics/
Hannah
Hello I am working with the analyst code with the https://ww.wp.xz.cn/plugins/header-and-footer-scripts/ plugin.
What I want to ask :
http://iktisatnet.blogspot.com.tr/2018/02/child-thema.html
Is the operation in the image correct?
Is the operation in the image correct?
No, it’s not good to override templates to add in analytics. you should always hook into the header even if you do this through a child theme.
Finally, your image wouldn’t work because you placed your code inside of a php comment area. You would need to place it below */
But don’t do it. Use a plugin or a function to hook into the head.
Ben
Hello I added the code below the “* /” code, and it returned an error.
Screenshot of my last action
http://iktisatnet.blogspot.com.tr/2018/02/screenshot-of-my-last-action.html
As Ben said above, don’t override the template. You need to either use a plugin or add a hook into the head. Have you tried this?
Hannah
Your screen shows things fine (although you should remove the header.php file from your child theme).
What is the issue? what is the error?
Hi I removed the header php file.
Thank you.