0
Welcome Guest! Login
0 items Join Now

Where to add special SEO tracking code in footer?

  • Where to add special SEO tracking code in footer?

    Posted 12 years 5 days ago
    • I've got an SEO tool I'm going to be testing that requires me to put a snippet of code into the footer of my site. I tried adding it to the footer.php in my theme (Camber) but it doesn't seem to be working.

      The code I need to drop in there is:
      <?php require_once($_SERVER . "/toolboxmedia.php"); ?> but no matter where I put it on that footer.php page, I am still getting a fail when I test for the code.

      Can someone tell me where I might be able to stick a bunch of custom tracking code onto each of my pages - either calling them directly or adding this include code to a particular page?

      Thanks so much!
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Where to add special SEO tracking code in footer?

    Posted 12 years 5 days ago
    • Hi, you might want to try putting it near the bottom of the index.php file. I'm not sure exactly what the footer.php file does in Gantry, but I think it's only used in certain circumstances, all the same positions are found in the index.php file, and that is used for all pages. Hope that helps.
    • The following users have thanked you: Alex Bangle

    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.039 seconds