Set Up a Precautionary Tracking Script for Google Ads

A backup script that catches attribution data your primary tracking template might miss.

What it does

Monitors clicks and appends campaign, ad group, keyword, and match type details as UTM parameters — duplicating your tracking template as insurance.

Setting it up

  1. In Google Ads, go to Tools and Settings > Bulk Actions > Scripts.
  2. Replace the default script with the provided tracking template code.
  3. Give it a descriptive name.
  4. Set execution frequency to Hourly.
  5. Authorize the script.

Important caution

Don't run more than one script modifying UTM parameters at the same time.

When you need this

Optional extra insurance if your regular setup is working reliably; more worth adding if you've noticed occasional attribution gaps.

Was this article helpful?