Okay
  Public Ticket #1852449
Integrating Google Analytics
Closed

Comments

  • Schned started the conversation

    Hello,

    I've integrated Google Analytics to my website by pasting the tracking code to my header.php file. It does track the visitors but it doesn't tell me on which page the visitor is. No matter where in the website the viewer is, GA just shows the URL as homepage. How do I tell GA to track my other pages in the website?

  •  295
    Paul replied

    Hello!

    In this case, I would suggest using a third-party plugin specifically for Google Analytics. Here's some plugins you can try:

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

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

    Regards,
    Paul

  • Schned replied

    Okay, so there's definitely something wrong. I've discovered that I am able to track all the public parent pages (Home, Blog, Contact, About) but I can't track the child pages under parent links. For example, I am not able to track single portfolio and blog posts. Can you help please?

  •  295
    Paul replied

    Hmm. I am wondering which plugin are you using for placing the analytics code? Could you check if are there any specific options of the plugin that currently excludes single pages/posts? 

    Do you have any caching plugin installed? If so, please try clearing all the cache and check it again.

    I would also suggest contacting the plugin support forum for the help about its functionality.

  • Schned replied

    As a matter of fact, I am not using any plugins since all I need to do in order to make GA work is paste the tracking code in the header.php file and that's what I did.

    I did try the plugins too, and they perform the same functionality but even they are not able to track single posts.

    Use this website to see which pages are not tracked: http://www.gachecker.com/

    What is the problem here?

  •  295
    Paul replied

    That's indeed really strange... As I checked the source code of your site, it seemed the analytics code was only on the homepage.

    I have tried putting my analytics code in the theme on my local machine (header.php right before the "head" tag), and it showed up fine on every page including portfolio single pages. There's no problem here.

    Could you provide me the login account? I will check it. ( *Don't forget to mark your reply as Private.)

    ----

    Looking at the source code, it seems you are also using some kind of a minified or caching plugin? Did you try unminifying and clearing all the cache?

    Please also try to disable the plugins one by one to check if any of them is the cause.