I think my developers built my site in Joomla or something

Discussion in 'PHP' started by spock0149, Dec 9, 2009.

  1. #1
    Hey folks!

    I'm trying to install google analytics into my website and I need to paste some code before the </body>.

    I know enough HTML to get me around to do things like this, but I've looked at my site and it starts:

    ------------------
    <?php include("header.php");



    require_once("classes/static_pages.class.php");

    $sbg_obj = new static_pages();

    $id=$_GET['static_pg_id'];

    $statqry3 = "select * from " . $sbg_obj->cls_tbl . " where page_id='1'";

    $staresult3 = mysql_query($statqry3);

    $stadata3 = mysql_fetch_assoc($staresult3);
    ------------------------------------------

    To make it worse, my developers haven't responded to my emails in 3 weeks. -(

    Can anyone give me some suggestions as to where I should copy and paste the google analytics script?

    Thanks in advance!

    Spock
     
    spock0149, Dec 9, 2009 IP
  2. aquilax

    aquilax Member

    Messages:
    126
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Two guesses:

    -he uses templates (cannot figure out where thy are located from the code you posted)
    -he uses the database to store the databases

    need more code ..
     
    aquilax, Dec 10, 2009 IP
  3. spock0149

    spock0149 Peon

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey - thanks for your response aquilax.

    What sort of code would I need to paste for you to get a good feel? Should I paste all of what I find on index.php?

    Thanks!

    :)
     
    spock0149, Dec 10, 2009 IP
  4. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #4
    dimitar christoff, Dec 10, 2009 IP
  5. CS_Designs

    CS_Designs Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It seems that it is written in PHP.

    You can imbed the code into any PHP file

    Look for the head or body section in the PHP file and then determine placement reading though the available HTML that's all ready in place.
     
    CS_Designs, Dec 10, 2009 IP
  6. worlddomain

    worlddomain Well-Known Member

    Messages:
    1,138
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #6
    if it's a Joomla site
    from the admin panel - go to your templates - and hit the edit html button
    if your using firefox - hit ctrl f and search for /body - then just add the google code before it

    hope that helps
     
    worlddomain, Dec 10, 2009 IP
  7. vengs

    vengs Greenhorn

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    i think joomla sites are normally recognizable from backend.....rather than front end ...if developer really want to conceal that site is joomla site....
    The classname and structure seems like joomla to me...
    but u can download joomla and check the filenames...(ur filename and filenames in joomla)
    the developer will not have time to rename each page individually(at max foldernames may be changed..)
     
    vengs, Dec 11, 2009 IP
  8. spock0149

    spock0149 Peon

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Very valuable information everybody - thanks very much. I installed GA into this recently so I'll see if its' actually working.

    Thanks again for ALL the comments and help.

    :)
     
    spock0149, Dec 11, 2009 IP
  9. spock0149

    spock0149 Peon

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ..awesome - it's working a charm.

    I didn't even need to paste the GA code into all the pages - just one, and it seemed to 'know'.

    -)
     
    spock0149, Dec 11, 2009 IP
  10. akhil1311

    akhil1311 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The header.php will contain the html body. Do copy your code in that page.
     
    akhil1311, Dec 11, 2009 IP