How to Add Custom Parameters in Litmus Tracking Code Manager

SwetKsh
Level 1

How to Add Custom Parameters in Litmus Tracking Code Manager

Our Marketo and Litmus is in sync. We are using Litmus tracking codes for some additional tracking of our emails send through Marketo. We want to use same tracking code for a particular Marketo program having multiple email sent. So, we want to use custom parameters to differentiate the individual emails. What parameter or field could we use from Marketo under that and in what format do we need to put it there. Also, could we add multiple parameters and how do we separate them (i.e. using a + or & sign). Attached is the image for reference.

SwetKsh_0-1741102779471.png

Thanks

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: How to Add Custom Parameters in Litmus Tracking Code Manager

Most of these are Litmus questions, not Marketo questions. Litmus has its own way of adding multiple sub-parameters. (Completely non-standard by the way, and thus terrible for learning how URLs work.)

 

In Litmus, you set placeholders for sub-parameters like this:

 

 *|param-1|*+*|param-2|*+*|param-3|*

 

 

Then you populate the t query param like this:

 

 *|value|*+*|another%20value|*+*|yet%20another%20value|*

 

 

Note sub-param values must still be URL-encoded (percent-encoded) despite the overall format being proprietary.

 

If you want to differentiate individual emails, however, you have a problem. Marketo doesn’t reveal an {{email.id}} type of token. You’d have to create such a token yourself using Velocity to grab the Email’s Asset ID. This is likely outside of your experience. So instead I’d say either:

 

(a) involve a Velocity developer to do this, or

(b) don’t even try to create a token, just hard-code the asset ID using a ${mktoString} variable, i.e. copy the email ID from the URL to the variable