Google Ads/Analytics Geo Target Ids

This is the current list of country codes used by Google Analytics and Google Ads. These are also known as Geo Target IDs. List of IDs Geo ID Name Country Code 2004 Afghanistan AF 2008 Albania AL 2012 Algeria DZ 2016 American Samoa AS 2020 Andorra AD 2024 Angola AO 2010 Antarctica AQ 2028 Antigua ... Read more

List of YouTube Video Category IDs

This is the current list of YouTube video category IDs: 1 Film & Animation 2 Autos & Vehicles 10 Music 15 Pets & Animals 17 Sports 18 Short Movies 19 Travel & Events 20 Gaming 21 Videoblogging 22 People & Blogs 23 Comedy 24 Entertainment 25 News & Politics 26 Howto & Style 27 Education ... Read more

Find a YouTube Channel ID

A YouTube channel ID is a unique identifier for a YouTube channel. In recent years YouTube has moved to channel names instead of IDs, and it's now often impossible to find a channel ID by simply browsing around YouTube's website. However, the unique ID is still very important for fetching public data like view and ... Read more

Convert Unix Timestamps to Google Sheets Dates

Certain APIs and datasets accept or display data in Unix timestamps, which are not natively recognized by Google Sheets and can therefore not be used for calculations or other data transformations. These timestamps can be converted as follows, substituting in your date cell where you see A1. Convert regular date to UNIX timestamp Convert UNIX ... Read more

Leverage Enhanced Ecommerce Data Layer for Marketing Pixels

This post contains scripts that you can use as Custom JS Variables in Google Tag Manager. These scripts all target the quite specific (yet common) use case where a site already running Google Analytics Enhanced Ecommerce now needs to run additional marketing or analytics tags. Related post: Collect Enhanced Ecommerce Values into GTM Variables CONTENTS ... Read more

Set up Custom Dimensions using GA, GTM, and the Data Layer

Adding a custom dimension to Google Analytics involves several interconnected parts: the data layer, tag manager setup, and admin settings in GA. This post walks through each step of the process to show how they fit together. CONTENTS Step 1: Push Values into the Data LayerStep 2: Set up Custom Dimensions in Google Analytics AdminStep 3: ... Read more

Remove fbclid Parameter from GA Reports

In late 2018, Facebook began appending "fbclid" query strings to the ends of all outbound URLs originating from Facebook's site. These URLs take the format &fbclid=IwAR0Ylspg9Zo1-4JLuy5L3N7RhNTHg5BETDMlsQkUST8QC1JCo3iC6-54_PQ, and are appended to all outbound content, both FB ads as well as organic posts. This post will show you how to remove this parameter from your Google Analytics ... Read more