How to exclude query string from performance report? | Community
Skip to main content
Level 1
May 22, 2017
Question

How to exclude query string from performance report?

  • May 22, 2017
  • 2 replies
  • 1860 views

Is it possible to add a feature to exclude query strings from performance report? Currently our CMS (integrated with Marketo) will be appending query string to support user logins.

The feedback I got from Marketo support is to either use Excel or other reporting tools to export data from Marketo and then massage the data. I thought the reporting will have smarts to ignore them like any other services.

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

2 replies

Josh_Hill13
Level 10
May 23, 2017

can you get more specific about the intended workflow?

SanfordWhiteman
Level 10
May 23, 2017

Is it possible to add a feature to exclude query strings from performance report? Currently our CMS (integrated with Marketo) will be appending query string to support user logins.

You can exclude query strings from Munchkin logging (and thus from reports) but you can't both have them logged and have them ignored in reports.

GeoJoseAuthor
Level 1
May 31, 2017

Sanford, thanks for your response. Can you please elaborate on excluding query strings from Munchkin logging ?  If there is any pointer to do that, it will be great. So to be clear does the click tracking on the email relies the page URL that gets captured via munchkin on the website? I presume it would be captured at the Marketo service side.

SanfordWhiteman
Level 10
May 31, 2017

Email click tracking (Clicked Email events) doesn't use Munchkin at all. That's why it works even if the URL isn't under your control or is a binary asset that doesn't run Munchkin.

If you strip the query string before init'ing Munchkin, the query strings won't be seen:

var loc = document.createElement('a');

loc.href = document.location.href, loc.search = '';

history.replaceState({},null,loc.href);

Munchkin.init( ... )

(Note this code won't work on IE 8-9.)