Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 05:54 pm EST

Geeklog Forums

How do I add Tracking Code to the Static Pages


websight

Anonymous
I am trying to use an analitics tool to my Geeklog but I cannot seem to get visability into the Static Page viewing. Can someone please help enlighten me on what file I modify and where in the file I put it.

I would appreciate you help.

Thank you,

WebSight
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure what it is you're trying to do.

If you have some HTML code, you can simply embed it into the content of your static page. Alternatively, if you want to have it in each and every static page on your site, you could embed it in the static page templates (in plugins/staticpages/templates).

bye, Dirk
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
If you put the tracking code in a single static page, make sure the system doesn't filter out the javascript, and do not use the advanced editor.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

websight

Anonymous
I was able to locate the header.thtml file in the /layout folder and add the java script to that. Now all of my pages are sending data to the Analytics system.

Thanks for the replies.
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
it's better to use footer.thtml, but if it works fine, it's fine by me too Big Grin
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

WebSight

Forum User
Newbie
Registered: 08/19/08
Posts: 5
Quote by: beewee

it's better to use footer.thtml, but if it works fine, it's fine by me too Big Grin



The header is working great but I am curious to know what I might be "missing" by not using the footer - what do you think it would change?

WebSight
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Google recommends putting the javascript right at the end of your page right before the end body tag.
One of the Geeklog Core Developers.
 Quote

Status: offline

WebSight

Forum User
Newbie
Registered: 08/19/08
Posts: 5
Quote by: Laugh

Google recommends putting the javascript right at the end of your page right before the end body tag.



Thanks for the info.

WebSight
 Quote

All times are EST. The time is now 05:54 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content