This script allows us to identify users who are browsing your website in incognito/private mode. This script will help while creating a remarketing audience as the incognito mode users are never going to come again on the website with same client id so we can exclude them from remarketing list. You can read more about this scripts implementation and use on this blog.
Out of Stock Google AdWords
Client ID Tracking
Client ID is a unique ID assigned to each user by Google Analytics. It is assigned to custom dimension on User level so that you can analyse visitors’ information anonymously for your website and derive stronger insights.
URL Query Parameter Tracking
There are many websites which have multiple Query Parameters as a part of their URL. Sometimes these query parameters provide key insights into the user’s actions on website. This script, when used with Google Analytics or Google Tag Manager, can take specific value of parameters and push it into event tracking or in custom variable. The data will be available in Google Analytics events report or Custom Variable reports.
Note: Needs your modification depending on your URL query parameters.
Outbound Link Tracking / Email Link Tracking / Document Download Tracking
Note: This code requires jquery.