Find your basic tracking code, and additional data-collection settings.
The following settings are available only in Universal Analytics.
Click Tracking Code to find the basic code snippet for a website or to download platform SDKs for an app (websites & apps).
Click Session Settings to configure the length of a session and of a campaign (websites & apps).
An incorrect session-length setting can have a negative impact on session-based analysis; for example, if your users would normally have more than 30 minutes of inactivity during a session, a shorter timeout would divide single-session data into multiple sessions and provide an inaccurate picture of activity.
Set campaign timeout to correspond to the length of time you want to be able to attribute a session or conversion to one of your campaigns. For example, if you run seasonal campaigns, set this value to 3 Months; if you run weekly campaigns, set this value to 7 Days.
Add search engines to the default list so that their traffic is identified as organic rather than referral (websites only).
Identify domains you want to exclude as referrers, for example, your own domain (websites only).
Identify search terms that you want to identify as direct rather than search traffic, for example, your own domain name (websites only).