Jump to content

Google tracking


Guest

Recommended Posts

I want to use various search ad tracking and I need to know which template to edit that will cover all the product pages on my sites. I also need to know which template to edit for the main page. Can any one help with this?

Thank you in advance,

Rich

Link to comment
Share on other sites

I need to insert the following code before the <body> tag in order to make it work with google. I also need it on every page that I want tracking for. Here is the code:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">

</script>

<script type="text/javascript">

_uacct = "XX-xxxxxx";

urchinTracker();

</script>

Rich

I want to use various search ad tracking and I need to know which template to edit that will cover all the product pages on my sites. I also need to know which template to edit for the main page. Can any one help with this?

Thank you in advance,

Rich

The two files which maintain the content on every page are yourskin/StyleTemplates/Global/Index.tpl for every page except the cart part and yourskin/StyleTemplates/Global/Cart.tpl for the cart

Link to comment
Share on other sites

Andi,

Ok, I found it, I'll give it a try and see how that works and let you know.

Thanks for your help

Rich

I havent tried it myself although i really should :errm:

Open yourskin/StyleTemplates/Global/Index.tpl and find

</head>
After that but before
<body>
paste your code. It should then be on every page except your cart page :D

Link to comment
Share on other sites

Andi,

I need to be corrected. The code has to go in just before </body> and that

is where I placed it. It appears to be working correctly.

Thanks again,

Rich

Andi,

Ok, I found it, I'll give it a try and see how that works and let you know.

Thanks for your help

Rich

I havent tried it myself although i really should :errm:

Open yourskin/StyleTemplates/Global/Index.tpl and find

</head>
After that but before
<body>
paste your code. It should then be on every page except your cart page :D

Link to comment
Share on other sites

You might want to put yor analytic code in cart.tpl as well. That's what I did with mine for more accurate tracking.

Done, thanks

Rich

Link to comment
Share on other sites

I have this installed on two of my sites and it works like a dream with some amazing facts and figures coming from it and when link to adwords and other campaigns is a website owners dream.

Sign up for anayltics at google

visit .org i think and get the template code to insert into two files.

Then what you need to do is insert in the main index.php file before the</body> tag and voila google will find it and track your visitors.

It is that easy and a killer addition to any site.

Link to comment
Share on other sites

  • 3 weeks later...

Added code to : global/index.tpl and global/cart.tpl

Also did the modifications to content/confirmed.tpl and and includes/content/confirmed.inc.php

E-commerce set to on

Site set as http://www.semperfiphotography.com/

Default page set as index.php

When using check trackign status, getting this still:

Tracking Not Installed (Last checked: 2006-06-27 11:46 AM PST.)

The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.

Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...