When HubSpot auto-tags marketing email links, utm_content comes through as a numeric ID (e.g. 425343237). I need to map that back to the email’s name/subject so I can join it against PostHog session data. I like using the default values because then I don’t have to manually create UTMs for every link.
Hey @boostmyemail,
Thanks for posting in the Community!
I’d like to tag in some Community experts here to see what insight they may have to share. @karstenkoehler, @danmoyle, and @Josh - are any of you aware on how @boostmyemail might be able to map back to the email’s name/subject?
Shane, Senior Community Moderator
Hi @boostmyemail,
As far as I know, this is not possible. HubSpot only has the three options explained here: Manage marketing email open and click tracking
You can either keep the utm parameters by HubSpot on (and keep the numeric ID) or turn it off and you need to create the utm parameters yourself. There isn’t any setting in between or rule-based mechanism that would set the utm_content to something like the email name dynamically, unfortunately.
Best regards
Hey @boostmyemail. This isn’t something I’ve done before, so I can’t say with absolute certainty that what I found will work flawlessly. However, my first thought was, “Sure, I think that sounds reasonable. I wonder if it’s a simple shared spreadsheet functionality or maybe an agentic workflow function.”
So I did a little light research and found this suggestion.
- In HubSpot, go to Marketing > Email.
- Use Edit columns to add Marketing email ID to the email table.
- Export the email list, including at least:
- Marketing email ID
- Email name
- Subject line
- Send date/time
- Status
- Campaign, if useful
- Load that export to your warehouse / spreadsheet / PostHog-enrichment process as a dimension table.
- Parse PostHog’s landing-page URL or UTM property to extract utm_content, cast it to text, and join it to HubSpot’s Marketing email ID.
HubSpot Community guidance specifically recommends exporting the marketing-email dashboard to get the email name and internal ID together; the email table can also expose the Marketing Email ID as a column.
From here, honestly, I’d rely on documentation between the two systems and spreadsheet wizards. But I think that helps get you further down the road. Hopefully that’s the case!
those ids are not the same unfortuntaley
@boostmyemail last I checked, the export from the email index page does contain the ID used for the utm value. Yes, there are multiple ones, but the relevant one is in the export: Email internal ID - #2 by karstenkoehler