WordPress.org

Ready to get started?Download WordPress

Forums

Boldly Go Blue
[resolved] Coding Boldly Go Blue for Google Analytics (23 posts)

  1. PHX242
    Member
    Posted 7 months ago #

    I have my UA code number and a script snippet to put in the code, but I do not know where to put it. One person has said to put it in the footer. Another says before the Body. I thought that footer requires CSS which I know nothing about. Second, Boldly Blue has very little code at all and seems to be connected to Stargazer. In both Boldly Blue and Starqazer there are caveats about even changing or adding code due to consequences when they upgrade the theme. I like Boldly Blue but if I cannot even set up Google Analytics or change code, what's the point? Please tell me if this can be fixed or should seek out a more versatile theme` If I can put it in the code without dire consequences. please tell me precisely where it goes. Thanks.

  2. CrouchingBruin
    Member
    Posted 7 months ago #

    Most themes do not have an option for adding custom HTML or JavaScript. For those themes that do not, you can create a child theme, that's pretty much the standard way of modifying a theme.

    If you don't want to create a child theme, I like using the Header and Footer plugin. It has a lot of options for inserting code, like just on the Home page, on every page, in the head section, in the footer, etc. A plus is that it has an option for enabling the Facebook Open Graph metatags, in case your theme doesn't support that as well.

    Once you install the plugin, go to Settings > Header and Footer. You can add your Google Analytics code in the field labeled Code to be added on HEAD section of every page. Please note that it will take a day or two for your statistics to start showing up on Google Analytics.

  3. mardesco
    Member
    Theme Author

    Posted 7 months ago #

    Hello, PHX242,
    Thank you for downloading Boldly Go Blue, and for posting your question in the forums.

    First, I always recommend putting JavaScript in the footer, as this allows for faster page loads. If you put it in the head, people on slow connections & mobile devices will have to wait for the code to be downloaded & parsed before they can actually view the page.

    Secondly, rather than try to add the Google Analytics code manually, I would highly recommend using a plugin to do this for you. You could use the one that CrouchingBruin mentioned. There are many others. I like Yoast personally, he does great work, and he has created a plugin called Google Analytics for WordPress. You can install it with just a few clicks from your installation's Plugin Administration menu, or click here to download it from the repository.

    Finally, I don't think you have to worry about dire consequences :) As with all WordPress themes, you're welcome to change the source code yourself, and there is a convenient code editor within your wp-admin that will allow you to do this without any special software. In this case, "Boldly Go Blue" is already a child theme of Stargazer, so it inherits the parent theme's functionality. The author of the parent theme discourages people from modifying it for the reasons you stated. The child theme, on the other hand, simply makes some changes to the colors, and gives the navigation menu a fixed position. You can't do much to mess it up; and if you do, you can always re-install it and start over.

    If you have any other questions, let us know.

  4. PHX242
    Member
    Posted 7 months ago #

    Here's how inexperienced I am. I went to the Yoast website and tried to download the plug-in for Analytics. Then I got this RAr thing. I proceeded blindly ahead. Well, something came down and went somewhere. When I search I find the files but they must be floating about because no plug-in was installed in my Dashboard. There is nothing in Control Panel or programs --- just a folder on Desktop which I haven't the slightest idea what to do with. Ah well, Yoast is probably too complicated anyway. Geez, if I can't even get a download, I am in over my head on this. Guess Ill try something else.

  5. esmi
    Forum Moderator
    Posted 7 months ago #

  6. PHX242
    Member
    Posted 7 months ago #

    I tried to install Analyticator which is what I used on my first blog.
    However, I am informed with "unable to authenticate using Auth Token. So I reentered the UA number and got same result. I haven't any idea how to investigate an SSL problem which may be the culprit. I am trying to see if there is a time/date error on the server. That's another learning curve. When I set up my first blog it went perfectly. I hate to think I have to work with Google to straighten this out. That IS discouraging. I'm up the creek and paddle has broken.

  7. mardesco
    Member
    Theme Author

    Posted 7 months ago #

    I'm not familiar with Analyticator, is it a paid plugin? The "auth token" will be verified by the plugin author, it's not the same as your Google Analytics ID number.

    Easiest plugin installation is through your website's wp-admin. From the dashboard select Plugins > Add New. In the search box you can type in part of the name of the plugin you want, such as "Google Analytics" or "Header and Footer." This will bring up a ton of plugin options. Select the one you think sounds easiest to work with and click the "Install Now" link. A security dialog pops up, click "OK." Once the plugin is installed, click the "Activate Plugin" link. From there you can configure it and add your GA code from the plugin's options menu, which is usually found under the "Settings" menu in your sidebar.

  8. PHX242
    Member
    Posted 7 months ago #

    Well, thanks, I have done all of that. Analyticator is in the repository and comes up as a WordPress option with four stars. Works well with my other blog. It has been recently updated. I will completely remove it and try something else.Is there an alternative to Google Analytics or is it the 4oo pound gorilla? I am not going to try FTP or a manual operation --- just another learning curve and I have only played with Filezilla.

  9. CrouchingBruin
    Member
    Posted 7 months ago #

    Is there an alternative to Google Analytics or is it the 4oo pound gorilla?

    I use Google Analytics on all of my sites with no problem, and it's very easy. See my original post above, all you have to do is use the Header and Footer plugin to add your code. The amount of code that you're adding for Google Analytics is very small, so it shouldn't impact the load time whether you add the code in the head section or in the footer.

  10. PHX242
    Member
    Posted 7 months ago #

    Well, I really appreciate your time, but I don't know what to do with that RAr that comes up. I guess it is an unzipper and I don't know whow to use it. Do I click on Extractor or what? I am really sorry to be such a pain.

  11. CrouchingBruin
    Member
    Posted 7 months ago #

    You don't have to mess around with an RAR file or FileZilla, just install it directly from your WP site's admin dashboard using mardesco's instructions above.

  12. PHX242
    Member
    Posted 7 months ago #

    Well, another milestone! I got the plug-in loaded and I put the script on every page and saved it. I already had the UA code in. Now, I guess I wait. Right? My site has been active for four or five days so I guess it will take awhile. Still a little bit concerned that I have been authenticated by the Google god. Anyway, thanks so much to all of you. I had no idea how to do the zip setup until today. WordPress help is a great place. Thanks for your patience. Google could take a lesson from you folks --- a lesson in support.

  13. PHX242
    Member
    Posted 7 months ago #

    Can we keep this thread open for just a little longer?

  14. Andrew
    Forum Moderator
    Posted 7 months ago #

    Yes we can :)

  15. PHX242
    Member
    Posted 7 months ago #

    Should I see in the Appearance editor the script I just entered?

  16. CrouchingBruin
    Member
    Posted 7 months ago #

    No, you won't see it in the editor. What's the link to your site? You should be able to see it by doing a view source from your browser.

  17. PHX242
    Member
    Posted 7 months ago #

    Well, I got the script posted. And I found it on view source. I'm indexed in Google so most everything is working. I fervently await for the flat line in Analytics to show some blips --- then I will be most happy.

    I don't know how a child gets its functionality from the parent. The concept to a man my age is miraculous. My parents died years ago, but I suppose I have some of their "functionality" in me. Perhaps one day I will understand.

  18. PHX242
    Member
    Posted 7 months ago #

    I am indeed most happy. The graph line in Analytics shows five blips this morning and 19 visits. So, thanks again to Crouching Bruin, mardesco and esmi. I admit that I nearly quit, even to considering finding an alternative to Google Analytics, and all of it was due to frustration.

    And so, to all members out there, especially my fellow novices, do not despair. Believe me, if I can do these things, so can you. Not, however, without the help of all these volunteers. You are super people. I like Boldly Go Blue very much. I also like a discontinued theme called Motion which I hope will be updated and kept in the repository. I've been with it for over two years.

    Perhaps one day I'll be able to help others as the WP Team has helped me.

    Go boldly, everyone, and seek out new adventures.

  19. PHX242
    Member
    Posted 6 months ago #

    Me Again. Can you tell me where I insert keywords in Boldly Go Blue. I find no way under Genera, Writing or Reading. Thanks.

  20. mardesco
    Member
    Theme Author

    Posted 6 months ago #

    Are you trying to create a "keywords" meta tag? It probably has little or no SEO value these days, but you can create one using the Headers and Footers plugin that CrouchingBruin recommended.

    My suggestion would be to install a plugin such as "WordPress SEO by Yoast" which has a handy keyword density analysis feature and many other useful tools as well.

  21. PHX242
    Member
    Posted 6 months ago #

    In my first blog I recall typing in keywords. I think it was under General, Wriing or Reading. I have not done that for this new site. I just thought it was necessary to enter the list. I have an SEO Plug In waiting for me to set it. This will take some study as I know little about SEO.

  22. PHX242
    Member
    Posted 6 months ago #

    This is a new subject. We have another website(Dreamweaver). What would we have to do to integrate IncLinkPros( this WP site) into that site to maximize SEO if possible? I thought about adding my new blog to a link bar on the old site, but don't think that will work.

  23. mardesco
    Member
    Theme Author

    Posted 6 months ago #

    Hello PHX242,
    The short answer is yes, you could install WordPress in a subdirectory of your other site, post all your content there, add a "blog" link to your existing site's navigation, and even point your new domain's DNS to the blog directory on the old site. Integrating a link from your blog subdirectory back to the main site would simply require you to hard-code the links in your WordPress nav menus. Of course, the main site and the blog directory would not have the same visual design. Whether you would get a significant SEO benefit from a setup like this depends on your implementation and many other factors.

    Generally, we encourage folks to stick to one topic per support thread, as much as possible. I'm marking this thread resolved. If you have any other questions, please feel welcome to open a new support topic. Thank you!

Reply

You must log in to post.

About this Theme

About this Topic