AdWords
4.5K members online now
4.5K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Proper Analytics Code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have taken over a site and associated AdWords and Analytics accounts. I have used all these products extensivley in the past but have never had to set up the tracking code myself. I believ the current code, in a footer include, is old. But can't seem to find a definitive answer. There are two pieces of Google tracking code that I have pasted below. Am I mistaken or is this older tracking code? It does not look anything like what I am used to seeing for GA tracking.

 

Will the older code work just as well or do I need to update it?

 

<script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1234567-1";
urchinTracker();
</script>

 

AND

 

<!-- Google Code for Tag List -->
<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup --> <script>
/* <![CDATA[ */
var google_conversion_id = 0987654321;
var google_conversion_label = "l3-xxxxxxxxxxxx_wM"; var google_custom_params = window.google_tag_params; var google_remarketing_only = true;
/* ]]> */
</script>

 

AND (I presume this is a tracking image)

 

<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/123456789/?value=0&amp;label=l3-xxxxxxxxxxxxxx_wM&amp;guid=ON&amp;script=0"/>

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by Mini-CM (Community Manager)
September 2015

Re: Proper Analytics Code

Top Contributor
# 2
Top Contributor

Hi scotth7a9,

 

First block of code is a couple generations old. It will still work, but I would update to the current version that goes in the head of the document.

 

Second block of code is an Analytics remarketing list. It look fine.

 

Third block of code should be inside a noscript tag. It's part of the remarketing code that's for browsers without Javascript or with Javascript disabled.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords

View solution in original post

Marked as Best Answer.
Solution
Accepted by Mini-CM (Community Manager)
September 2015

Re: Proper Analytics Code

Top Contributor
# 2
Top Contributor

Hi scotth7a9,

 

First block of code is a couple generations old. It will still work, but I would update to the current version that goes in the head of the document.

 

Second block of code is an Analytics remarketing list. It look fine.

 

Third block of code should be inside a noscript tag. It's part of the remarketing code that's for browsers without Javascript or with Javascript disabled.

 

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords

Re: Proper Analytics Code

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks Pete, the last part is in a noscript tag, forgot to mention that.