Proper Analytics Code
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?
_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: 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;
/* ]]> */
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&label=l3-xxxxxxxxxxxxxx_wM&guid=ON&script=0"/>
Re: Proper Analytics Code
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.
Best of Luck!