As far as I know, there should be a URL parameter included in our thankYouURL. I have seen this URL parameter appear in our thankYouURL from time to time, but it does not always show up.
Are there any specific requirements that need to be fulfilled for an aliId to be added to the thankYouURL? For example:
Do you know more about this?
In the end, I want to extract the aliId from the ThankYouPageURL using JavaScript. However, when I try to do it as shown below, the URL usually does not contain any URL parameters.
Thanks and kind regards
Wolfram
form.onSuccess(function(values, followUpUrl) {
console.log(followUpUrl);
return false;
});
Solved! Go to Solution.
The aliId
should be added to the Thank You URL in all cases other than the following:
In all other cases you should expect the aliId
, for example:
aliId
aliId
aliId
⚠️ This post has been edited by a moderator.
It contains numerous falsehoods which may be AI-generated hallucinations.
Hi @WolframLotz
The aliId (Alias ID) parameter in Marketo thank you URLs is related to the tracking and association of form submissions with specific campaigns or assets. To ensure the aliId appears consistently, certain conditions should be met. Here are some key points to consider:
To extract the aliId from the thank you URL using JavaScript, ensure the form submission process includes the aliId parameter. Here's a basic example of how to extract it:
// Function to get URL parameter by name
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
// Get the aliId parameter from the current URL
var aliId = getParameterByName('aliId');
console.log('aliId:', aliId);
To improve the consistency of the aliId parameter appearing in the thank you URL:
If the aliId parameter still doesn't appear consistently, you might need to review your form settings and tracking scripts, or consult Marketo support for further assistance.
Thanks!
Jasbir
@Jasbir_Kaur about half of what you wrote is false. The response appears AI-generated and will be deleted.
Please supply only accurate, tested information on the Community. (This should be self-evident.)
The aliId
should be added to the Thank You URL in all cases other than the following:
In all other cases you should expect the aliId
, for example:
aliId
aliId
aliId
In the end, I want to extract the aliId from the ThankYouPageURL using JavaScript.
Extract and do what with it?
Great, thank you! This is really helpful. I have the impression that in some of my test cases, where I missed the aliId, I should have received one. But I'll dive deeper into this.
In some cases, we use custom code to set the follow-up URL differently from the form configuration. Until now, we haven't missed or considered the aliId during this process. However, for the future, I would like to incorporate this aspect into our code. I just wondered, as in several cases I didn't get any aliId.
From what I understand, the aliId ensures that information from one form submission is instantly available on the follow-up page, right? I think this is pretty useful in some cases.
Another interesting aspect would be whether the aliId serves as a lead identifier, similar to the munchkin cookie and the mkt_tok.
Would it be possible to use it in combination with DTP pages?
I'm thinking of scenarios where the lead submitted a form on a non-Marketo LP, where no mkt_tok is available, and the munchkin cookie can't be used. Currently, our DTPs work with the munchkin cookie to identify the lead, but in some scenarios, the cookie isn't available.
Did you test this already?
From what I understand, the aliId ensures that information from one form submission is instantly available on the follow-up page, right? I think this is pretty useful in some cases.
Yes, only the fields from the submission itself. Of course that same data is available in the onSuccess
and could be forwarded in the query string, i.e. as Base64-encoded JSON.
Another interesting aspect would be whether the aliId serves as a lead identifier, similar to the munchkin cookie and the mkt_tok.Would it be possible to use it in combination with DTP pages?
SimpleDTO already attaches the current URL’s query string to the hidden DTP’s query string, so the aliId
is already covered.
I understand that SimpleDTP will add the aliId. However, do you know if this will work as a lead identifier as well?
Example:
If this aliId is passed to the DTP, will the lead be considered a "known lead," and will we have access to the lead's data? Or will the DTP only show the data passed into the form without access to the rest of the lead's data?
So my intention is to find out which possibilities we have using the aliId.
It’ll only ever pull fields on the form because it’s not really reading from the committed Marketo database.
Thank you