Google Analytics (6 posts)

  1. Mallorykite2014
    Posted 1 year ago #

    Hi guys,

    I remember pasting the google analytics code above my </head> tag in header.php but Analytics wasn't receiving the data, so I used the plugin but my theme page load is already way too slow so I want to do it with the code. I know I have to paste it again after each theme update...

    I've deactivated and deleted the plugin but I still see this above </head> when checking my header.php:
    // Google analytics
    $google_analytics = themeple_get_option('googlecode');
    echo $google_analytics;

    Do you know if that's left from the plugin or if it's from the theme ?
    The theme has a box that says Google Analytics but when I paste it in I see Google on top of my site and it still doesn't receive data... I've asked the theme developer and I think he's a bit dumb cause first he took two weeks to answer saying I had to paste in header.php and when I asked what the box was for he said "oh yeah sorry, you can paste it there." He doesn't help at all so that's why I'm coming here to ask for some help.

    Any idea ?

    thanks in advance

  2. reneeinspired
    Posted 1 year ago #

    Hi! What theme are you using? My first bit of suggestion is to see if that theme has a forum that you can ask the question in.

    My next suggestion is to use Google Analyticor: https://wordpress.org/plugins/google-analyticator/. It is a well done plugin that should help you get it all setup.


  3. Mallorykite2014
    Posted 1 year ago #

    Hi Renee,

    thanks for your answer, however as I said I want to get rid of plugins because of my page load speed which is very slow. That's why i'm asking for help with the code...

    Any help someone ?


  4. Mallorykite2014
    Posted 1 year ago #

    Any help anyone ?? please...

  5. reneeinspired
    Posted 1 year ago #

    Do you have access to your hosting account? When I didn't want to use the plugin, I found it easier to upload the file that Google provides to my hosting. Have you tried that option?

  6. Mallorykite2014
    Posted 1 year ago #

    Hi Rene,
    I ended up adding it to my theme and it's working now... but I'll take a look at it with my hosting ! thanks for the idea ! ;)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.