Google Ads Script Review – Set URL Tracking Parameters

Today, I had to fix some URL tracking parameters for one of my clients.

Manually fixing UTM parameters to contain the campaign name is Groundhog Day of drudgery. Copy-pasting campaign names in the tracking template or URL suffix is extremely time-consuming and a guaranteed recipe for disaster when you forget to add them to newly created campaigns.

So, why not… Just Script It?

Here’s the script I used to solve my miseries…

What it does:

This Google Ads script provides methods to automate the inclusion of UTM parameters like source, medium, and your campaign name in the Final URL Suffix and ValueTrack parameters. 

Why you’d care:

GA4 can report clicks from Google Ads, and attribute them to the right campaigns IF you have linked GA4 to Google Ads and auto-tagging enabled, AND the user has given consent to do so.

Auto-tagging and GA4 rely on the gclid identifier for tracking, but privacy restrictions and user consent requirements may prevent its processing. When this happens, the campaign attributed to such a session may be labeled as (not set) or occasionally as (organic). Some browsers may remove the gclid parameter in enhanced privacy modes. This can disrupt data collection, leaving gaps in your campaign performance insights.

Adding the right UTM parameters to clicks from your Google Ads account prevents this from happening, and (partly) recovers lost data.

Why I like it:

The script automates the repetitive task of adding UTM parameters to all campaigns, saving you time and effort. It applies a consistent structure across campaigns, eliminating the risk of human error in manual tagging.

The script works across multiple campaign types, including standard Search, Display, Shopping, Performance Max, and (potentially in the future) Demand Gen.

It is straightforward to implement in your Google Ads account, requiring minimal setup. Once configured, it runs without needing ongoing manual intervention.

URL: https://adequate.digital/en/utms-for-google-ads-campaigns/

PRO TIP: Run the script daily to ensure that any newly created campaigns or changes to existing ones are consistently processed.

Happy scripting!

 

Join thousands of PPC geeks who already have access:

If the button above isn’t working for you, you can sign up here to get access.

Google Ads Script Review – PMax Shopping Spend Drop Alert

What it does:
This script monitors Performance Max campaigns across multiple Google Ads accounts under an MCC. It checks if these campaigns served in Google Shopping the previous day and checks if their spend meets a specified threshold. If any campaigns do not meet these criteria, the script sends a warning via email.


Why you care:
For most advertisers running PMax campaigns, clicks from the Shopping PLAs are the main revenue driver. Spending the budget on other channels like Display and YouTube mostly tanks results. If, for some reason (*), PMax stops generating clicks from Shopping and/or starts spending much more on Display or YouTube, you want to be in the know.

(*): potential reasons for PMax dramatically shifting spend to non-Shopping channels:

Continue reading “Google Ads Script Review – PMax Shopping Spend Drop Alert”

Google Ads Script Review – Quality Score Dashboard

Quality Score Dashboard

What it does:
This Google Ads script provides a dashboard that displays a Quality Score chart and summary.
It will show the ‘Share of impressions’ and ‘Share of keywords’ and other metrics per Quality Score.
The dashboard lets you drill down to accounts, campaigns, and ad groups. The bar chart and summary will show the data for your selection.

Continue reading “Google Ads Script Review – Quality Score Dashboard”