Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
right now, we are tracking campaigns using s.cid
but if we want to include 2 campaign codes in a url query string, how should we do that?
Solucionado! Ir para a Solução.
Visualizações
respostas
Total de curtidas
Hello Jingru,
Simple answer is 'yes'.
Lets say the URL is www.adobe.com?a=value1&b=value2 and right now you are capturing query string parameter value 'a' in campaign.
So, you answer would look like s.campaign = value1 and code will be like below:
If(!s.campaign){ s.campaign=s.Util.getQueryParam('a')}.
If you want to append query string parameter value 'b' in campaign, the code should look like below:
If(!s.campaign){ s.campaign=s.Util.getQueryParam('a') + s.Util.getQueryParam('b')}.
and now the value will be s.campaign = value1value2.
Now it is up to you that how you wanna capture the two variables. You can also use an delimiter to separate the values, but if one query string parameter is available, the results would be like 'value:' or ':value' (Assuming ':' as delimeter). So whenever there is no value in any of the query string parameter you can set the default value like 'Default', 'Not Available' etc., so that it will be easier during classification rule builder.
Sorry, i just wanna sum the earlier conversation. Ha ha!
Thank You!
Arun
Visualizações
respostas
Total de curtidas
Hi jingruw29152785,
Please check the thread: Getting multiple query parameters in the s.util.getQueryparam
Visualizações
respostas
Total de curtidas
Adding to the Thread which ishans52004352 is referring just keep in mind that you will the multiple code in one line item separated by a delimiter, you can leverage classification once the data is collected.
Visualizações
respostas
Total de curtidas
Hello Jingru,
Simple answer is 'yes'.
Lets say the URL is www.adobe.com?a=value1&b=value2 and right now you are capturing query string parameter value 'a' in campaign.
So, you answer would look like s.campaign = value1 and code will be like below:
If(!s.campaign){ s.campaign=s.Util.getQueryParam('a')}.
If you want to append query string parameter value 'b' in campaign, the code should look like below:
If(!s.campaign){ s.campaign=s.Util.getQueryParam('a') + s.Util.getQueryParam('b')}.
and now the value will be s.campaign = value1value2.
Now it is up to you that how you wanna capture the two variables. You can also use an delimiter to separate the values, but if one query string parameter is available, the results would be like 'value:' or ':value' (Assuming ':' as delimeter). So whenever there is no value in any of the query string parameter you can set the default value like 'Default', 'Not Available' etc., so that it will be easier during classification rule builder.
Sorry, i just wanna sum the earlier conversation. Ha ha!
Thank You!
Arun
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas