Reporting on UTM parameters | Community
Skip to main content
NL-KB
Level 2
August 16, 2024
Question

Reporting on UTM parameters

  • August 16, 2024
  • 1 reply
  • 988 views

I'm still pretty fresh to Adobe Analytics (I was primarily a WebTrends user and currently Google Analytics) and I'm working through enabling reporting on UTM parameters in Adobe Analytics. I've used this article as a baseline guide (https://medium.com/@utmsmartmanager/the-complete-guide-to-using-utm-parameters-in-adobe-analytics-dfce81b91938). I'm at the point now where we have code deployed to collect the UTM parameters from the URL (when present) and pass them in a single string to the campaign variable. I added the classifications, set up the classification rules (regex method), and linked the rules to my report suites.

 

 

 

 

When I set up a table and use the Tracking Code dimension, I can see the full string in the line items. But when I set up a table with the Source, Medium, Campaign, Term, Content dimensions, everything is listed as Unspecified. Testing in the classification rules breaks down the string properly into the correct classifications.

 

 

It feels like I'm missing something simple/obvious, but I can't seem to locate that silver bullet in the settings or digging around online. Does anyone who's been able to get this working successfully have any tips/pointers?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 17, 2024

Hi @nl-kb 

 

Looking at your regular expression, a few things

  • the colon does not need to be escaped with the backslash "\:" should be ":" instead
  • in your example, you do have an empty value for "Content" which is not working with your regex

You may want to make the capture groups optional by adding a question mark "?" after each group.

Meaning, it will still require the colons to be present, but will also allow empty values

 

^(.+)?:(.+)?:(.+)?:(.+)?:(.+)?$

 

 

You can test it here

https://regex101.com/r/rvBaq2/1

 

Also, keep in mind that you will see undefined in your values if visitors did not come with UTM query params to your site.

 

Hope that helps

Cheers from Switzerland!
NL-KB
NL-KBAuthor
Level 2
August 20, 2024

That has everything working! Thanks for the suggestion!