*** NOTE: ALL INFORMATION IS ACCURATE AT DATE OF PUBLISHING ***

Automatic UTM Tracking (or tagging) went in to public preview February 2023, and I wrote about how to use it to get the most from Google Analytics (and other analytic tools). Since the preview came out, it’s had a few changes that are definitely worth reviewing to give you more custom UTM tracking. Plus, the functionality is now generally available (meaning it’s supported and no longer a preview feature) April 2023. Let’s check out the new stuff!

The setting to start using UTM tracking is still in the same place. Go to Settings then Feature switches and then turn on UTM tracking.

Click to view in detail

As before, the parameters by default are shown in the table below:

ParameterExample ValueDetails
utm_sourceDynamics 365 Marketingthis will always be the same
utm_mediumemailthe channel used, email, sms, custom etc.
utm_campaignGoogle Analytics G4 Overviewthe name of the journey
utm_contentThank You For Your Help OR You Are Wonderful!the name of the message
utm_termN/Anot used in D365 Marketing

But what if you want to use something different? Well now the option exists to customise things slightly. From the Settings area, in Customer engagement, click on UTM tracking.

Click to view in detail

You can only have one active UTM Tracking Options record so create a new one and give it a name. The UTM Source can be changed. Maybe instead of Dynamics 365 Marketing you just want to abbreviate it to D365 Marketing. The Campaign can be set by pulling from a field on the Journey table, by default this is the Name field. The Medium cannot be changed, it would always be either Email, Text Message etc. to define the medium of the communication used. Finally, you can now determine if the UTM Content tag should even be used. Leave it turned off if it’s not relevant for your organisations needs. Then save the record. That’s it! Go back to my original blog about UTM Parameters to understand how to find the UTM data in Google Analytics.

Click to view in detail

What about using a different field instead of the Journey name? Well as per the blog I wrote about customising the Real-time Marketing Journey table, we can add a new field for this purpose. You might have a specific naming convention for your Journeys and not want the same info transferred back through to Google Analytics. First, create a solution and pull in the RTM Journey table (msdynmkt_journey). Add a new text column and call it UTM Campaign.

Click to view in detail

We can add this new field to the settings area of a Journey, but what if someone forgets to fill it out? We can create a simple business rule on the Journey table that states if the UTM Campaign field does not contain data, populate it with the value from the Journey Name field. This way it will always have something in there.

Click to view in detail

This just shows you the business rule logic:

Click to view in detail

Now add your new field to the Settings tab on the main Journey form.

Click to view in detail

Go back to your UTM Tracking Options record you created earlier. Now you can find the new field and link the UTM Campaign to this instead of the Journey Name. Save the record.

Click to view in detail

Now if we created a new Journey, we can give it what ever name we like.

Click to view in detail

Go to the settings tab on the Journey and if you didn’t fill out the UTM Campaign field prior to saving the record, you will notice it’s populated with the name of the Journey.

Click to view in detail

We can now change this field so it’s something more meaningful for us, rather than simply using the default of the Journey Name.

Click to view in detail


Check out the latest post:
Access To Manage Consent From Lead And Contact Records


D365 Marketing Weekly
Have you seen the D365 Marketing Weekly newsletter yet?
A weekly issue covering features, functionality and news on the topic of Marketing, specifically covering Dynamics 365 Marketing and other interesting tools and tips for anyone interested in the subject.
Subscribe Here
This is just 1 of 443 articles. You can browse through all of them by going to the main blog page, or navigate through different categories to find more content you are interested in. You can also subscribe and get new blog posts emailed to you directly.




4 thoughts on “Custom UTM Tracking In D365 Marketing

  1. Hey Megan,

    We are currently setting up Dynamics Marketing and plan to send a lot of Newsletters to existing leads/contacts and therefore need to rethink our “Leadsource” logic. Well, we do not want to change the original source the lead came from, but we are unsure how we should now structure the campaign information following our newsletter outreach.

    Do you have any recommendations or best practices on that?

    1. Hi Matthias, hmmmm…. not really sure I follow. If you are sending out a newsletter, that would say to me it should be sent to people who have requested your newsletter via some kind of marketing form to opt in to get it. You can opt in Contacts only in to Subscription Lists, but there is VERY new functionality (still in preview at this time) for Real-time where you can add topics that allows you to opt in Contacts OR Leads. However, you can only send one type of record through a Journey at any time.

      This would mean you would need to have a Journey for your newsletter and decide to send it to Contacts, or send it to Leads. You could of course do two Journeys but that is a perhaps a little too much.

      I guess I am not really sure what your original source really has to do with your process for sending newsletters….

Leave a Reply

Your email address will not be published. Required fields are marked *