Google
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + 'google-analytics.com/ga.js';
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
Update Your Analytics Tracking Code to Support Display Advertising
If you choose to enable Remarketing with Google Analytics, then the update to the Analytics tracking code involves replacing only a single line of the code. Once you have made that change, Google Analytics collects the information it normally does, as well as the DoubleClick cookie when that cookie is present. The DoubleClick cookie enables remarketing for products like AdWords on the Google Display Network.
This change is compatible with both the synchronous and asynchronous versions of the tracking code. This modification does not impact any customizations you have previously made to your code.
When you make this update to your tracking code, you also need to update your privacy policy.
To implement remarketing, replace the bold text in this example:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + 'google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
with the bold text in the example below:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Thanks for the wonderful tips that you have posted in this article. Great source!!! Bookmarked it!!!
ReplyDeleteseo Leicester
SEO link buildings or link exchanges are considered to be very helpful and essential services that bring improvements in the
ReplyDeletewebsite ranking in different search engines.
Bangalore web development companies
Google Analytic code could help to track our website's traffics and referral source.
ReplyDeleteWeb Design Companies | Top web designing companies
A quality website design must be 'on brand'. An integrated brand identity provides a visual language that communicates your company and values consistently across all media,both online and offline.
ReplyDeleteWeb Designing Company Bangalore | Web Design Company India
Online reputation management is the practice of consistent research and analysis of your business or industry reputation as represented by the content across all types of online media. Manage your brand and listen to what is said about your company and your products or services, then someone else can or indeed will.
ReplyDeleteWeb Designing Companies in Bangalore | Web Development Companies in Bangalore