UTM.BZ – Campaign URL Builder for Google Sheets adds campaign tracking (UTM) to a column of page addresses, and gives you three formulas: =UTM(), =UTM_CLEAN() and =UTM_GET(). In English or Arabic, free, and it works only inside the spreadsheet you use it in. Read the privacy policy and the terms.
The add-on is on its way to the Google Workspace Marketplace. This page will link to it as soon as it is listed.
Tag a column of links
- Open Extensions › UTM.BZ – Campaign URL Builder › Add campaign links. The sidebar opens on the right.
- Select the cells that hold the page addresses, in one column (a heading in the first row is fine), and click Use selection. The sidebar shows the range and how many addresses it found.
- Choose Email, WhatsApp, Paid social (then the platform) or Custom, and fill in the campaign name. Content, term and campaign ID are under More options.
- Check the first link in the preview, then click Add campaign links in a new column.
A new column is inserted to the right of the addresses, so nothing in your sheet is overwritten. Rows that aren’t web addresses are left blank and listed. To undo, delete the new column.
Formulas
=UTM(A2, "newsletter", "email", "spring_sale")
Adds source, medium and campaign name to the address in A2. Content, term and campaign ID are optional, after the campaign name:
=UTM(A2, "facebook", "paid_social", "spring_sale", "video_1")
It works on a whole column too, giving one link per row:
=UTM(A2:A100, "newsletter", "email", "spring_sale")
=UTM_CLEAN(A2)
Gives the page address without its tracking: every utm_ value and ad click ID removed.
=UTM_GET(A2, "campaign")
Reads one value from a link: source, medium, campaign, content, term, id, or any parameter name such as ref.
An error in a single cell shows as #ERROR! with the reason in English and Arabic; in a range, that cell shows the reason starting with ⚠.
What happens to your links
- Edited in place. The tracking values are set where they already stand or added at the end. The rest of the link keeps its exact text: its order, other parameters such as
ref=a+b, and its #anchor. A link that already has exactly these values comes back unchanged. - Exactly the values you give. Older
utm_values in the link are replaced; ones you leave empty are removed, and so is the same key twice with different values. - Encoded once. Arabic, spaces, + and & are encoded once, so they read back exactly as typed. Values are used as you type them, except spaces at either end. The sidebar suggests lower case with hyphens: Google Analytics treats “Email” and “email” as different values.
- Ad click IDs removed.
gclid,fbclidand similar belong to one person’s click and shouldn’t be shared. - Signed links flagged. If a link looks signed or time-limited (for example
X-Amz-Signature), the sidebar asks you to open it and check it still works. - Addresses without
https://get it added, as a browser would.
What it can access
Google asks you to allow two things when you first use the add-on:
- “View and manage spreadsheets that this application has been installed in”: only the spreadsheet where you use the add-on, and only while you use it. It reads the cells you select and the formulas’ values, and inserts the new column when you click the button. It has no access to your other files, your Drive, email or contacts.
- “Display and run third-party web content in prompts and sidebars inside Google applications”: this is how every add-on shows a sidebar. The sidebar contains only the add-on’s own code; it loads nothing from the internet.
Nothing is sent to utm.bz or anywhere else. Details: privacy policy.
If something doesn’t work
- “Select one column at a time”: select the cells in the column that holds the addresses, then click Use selection again.
- A row was left blank: its cell isn’t a web address (for example a note, a date or an address without a domain). Fix the cell and add the links again.
- A formula shows #NAME?: open Extensions › UTM.BZ – Campaign URL Builder once in that spreadsheet, then re-enter the formula.
- “Couldn’t write to the sheet”: the sheet or the column to the right is protected, or you can only view the file.
- Links written by an earlier run don’t change when the addresses change: run it again, or use
=UTM()for links that follow their address.
Questions or problems: email mudakkil2025@gmail.com. Please include the version shown at the bottom of the sidebar and, if you can, an example address.