0

I'm not good with JavaScript, and this is Google's code. I'm getting a object expected on this, which seems to work fine in other places.

It's the 3rd to the last line (the one with utmSetVar).

   <HTML>
<HEAD>
</HEAD>
<BODY >
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-159907-14");
pageTracker._trackPageview();
} catch(err) {}
</script>

   <script type="text/javascript">__utmSetVar('aff/VG-CEGBWI');</script>
</BODY>
</HTML>

4 Answers 4

2

The utmSetVar function is a one that was available in the old Google Analytics codebase using the "urchin" tracker.

http://www.google-analytics.com/urchin.js

You can use the following to determine which one you are using

http://www.google.com/support/googleanalytics/bin/answer.py?answer=75129

In order to solve your problem you will need to either revert to the old tracking style (easy hack solution) or to consult the google site on the newest method of achieving what you are after.

Sign up to request clarification or add additional context in comments.

Comments

2

The correct code was:

<script type="text/javascript">pageTracker._setVar('aff/undefined');</script>

Comments

0

Works fine for me when I remove the offending line of code.

I don't know what __utmSetVar('aff/VG-CEGBWI'); does. Can you elaborate?

Comments

0

From what I saw on Google it's for tracking (a cookie) site visitors. Here is an example on how to define it. Unfortunately the page is gone and you can only find it in Google cache:

What is utmsetvar

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.