• Resolved agentsully

    (@agentsully)


    I need to insert a tracking script after the <body> tag for my site, but I’m having a hard time finding it.

    Would it be in style.php?
    If so, then there is nothing that says <body>, just

    body
    {…blah blah blah…

    Is this where I should put it?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • It depends on what kind of theme you’re using. You’d likely want it on your sidebar, but if you have a widgetized theme, you could add the tracking script in one of the “Text” boxes.

    Look in your theme’s header.php — that’s where most theme’s keep the <body> tag.

    You could also put it in your theme’s footer.php right before the </body> tag.

    Well, actually, the body tag mybloglog wants you to use it after is in header.php.

    You’ll see something like this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="https://www.w3.org/1999/xhtml">

    <head profile="https://gmpg.org/xfn/11">
    *bunch of meta tags and gobbledegood code crap here*

    <?php wp_head(); ?>
    </head>

    <body>

    Something like that…. and mybloglog’s tracking code goes immediately after <body> and before anything else that’s there like other divs or whatever.

    I set mybloglog to load in a client’s sidebar on his request, btw, and it didn’t work very well at all – I don’t know why, but my guess is there’s a reason for mybloglog to suggest strongly that you put it where they indicate….

    Hi,

    I am using Cutline Theme.
    How do I paste the code in as there is no
    save button for me to update.

    Please advise.
    Jaz

    Thread Starter agentsully

    (@agentsully)

    Thanks everyone.

    Jazlai,
    It sounds like you need to make your header.php file writable by changing the properties of the file on your server to allow writing. (do this in your ftp client by right clicking on the file, then click on properties, then check off the “write” box.)

    After you do that then you should see a save button on your theme editor for the header.php file.

    I’m no expert but I think that should solve your issue.
    AS

    I had the same Question AS*

    Great Minds think alike*

    ;))

    Interestingly I went thru every button on my Dashboard + could not see that Body tag*

    Now i know i’m totally Newbie here but I’m one o those peeps that likes to dive in + do it – but U are not going to think the Body of the Template or Theme is in da Header!!

    Oh Lordy!!

    Cheers Everybody + Muchas Gracias fer da Help!! Billy ;))

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘insert tracking script after <body> tag (mybloglog)’ is closed to new replies.