2.8K members online now
2.8K 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

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="" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-1234567-1";




<!-- 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: --> <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;
/* ]]> */


AND (I presume this is a tracking image)


<img height="1" width="1" style="border-style:none;" alt="" src="//;label=l3-xxxxxxxxxxxxxx_wM&amp;guid=ON&amp;script=0"/>

1 Expert replyverified_user
Marked as Best Answer.
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!




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.