Marketo parameters in URL for Google Analytics | Community
Skip to main content
Stepan_Egorov
Level 2
March 29, 2018
Solved

Marketo parameters in URL for Google Analytics

  • March 29, 2018
  • 2 replies
  • 5868 views

Hi there!

Whenever somebody clicks a link in a Marketo email with the "link tracking" option on, they get to my website, with the URL having a huge parameter set at the end, begininng with /?mkt_tok=eyJpIjoiT0....... I see why it happens and that's OK.

The issue is that it spoils tracking in Google Analytics. When I check my page visit reports, I see such thing: http://prntscr.com/ixz4ik Each visit from an email is considered by GA as a visit to a separate page! During a year, such single visits accumulate to a huge sum, which makes a particular page visit count not matching the _actual_ numbers, which should also include hits from Marketo emails.

Anyone had a workaround to solve this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Grégoire_Miche2

Hi Stepan,

In GA, you need to exlude mkt_tok as a URL parameter in the view.

-Greg

2 replies

SanfordWhiteman
Level 10
March 29, 2018

Yes, been asked several times before. Search past posts for "mkt_tok".

Grégoire_Miche2
Grégoire_Miche2Accepted solution
Level 10
March 29, 2018

Hi Stepan,

In GA, you need to exlude mkt_tok as a URL parameter in the view.

-Greg

Stepan_Egorov
Level 2
March 30, 2018

Thank you Gregoire, this works.

Here's where to do it: http://prntscr.com/iyj92p

More info can be found here: https://www.lunametrics.com/blog/2015/04/17/strip-query-parameters-google-analytics/

Grégoire_Miche2
Level 10
April 1, 2018

Hi Stepan,

Pls mark the question as answered.

-Greg