Skip to content

Instantly share code, notes, and snippets.

Jan Mechtel janmechtel

Block or report user

Report or block janmechtel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Using auto-generated UTM tagged URLs within Google AdWords along with auto-tagging for Google Analytics

The Challenge

You want to use Google AdWords' auto-tagging for a deep integration with Google Analytics, but you need to use UTM parameters with your other analytics and marketing systems, but don't want to manually tag all of your ads.

The Solution

Within AdWords, you can use ValueTrack and custom parameters along with a tracking template to automatically generate a tagged URL with all of the information you need. A tracking template which populates the query string with campaignid, adgroupid and keywork looks like this:


jbtule / AESGCM.cs
Last active Oct 19, 2019
I have two code examples that I wrote for best practices encrypting a string in c#. They are both using authenticated encryption.
View AESGCM.cs
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
using System;
using System.IO;
using System.Text;
emk / apache-logs-hive.sql
Created Jan 3, 2012
Apache log analysis with Hadoop, Hive and HBase
View apache-logs-hive.sql
-- This is a Hive program. Hive is an SQL-like language that compiles
-- into Hadoop Map/Reduce jobs. It's very popular among analysts at
-- Facebook, because it allows them to query enormous Hadoop data
-- stores using a language much like SQL.
-- Our logs are stored on the Hadoop Distributed File System, in the
-- directory /logs/ They're ordinary Apache
-- logs in *.gz format.
-- We want to pretend that these gzipped log files are a database table,
You can’t perform that action at this time.