Expand my Community achievements bar.

Interested in becoming an Adobe Analytics Champion? Join us on May 15 at 9 am PT, and learn how to become a 2025 Adobe Champion.
SOLVED

Hit attribute : Query string parameter

Avatar

Level 4

Hi,

We are feeding Adobe Analytics from a datastream in AEP. This datastream is not fed by Adobe SDK but by a homemade API.

I want to understand which destination field should be mapped in this datastream to populate the hit attribute 'Query string parameter'.
This one is used in the marketing channel processing rule:

robinl39529461_1-1742996584520.png

So logic this rule number 1 is to check if an url parameter mcing exists and starts with sepa_

This query string parameter is mapped like this in the datastream:
- to populate what will be used by Adobe Analytics to defined the hit attribute Query String Parameter (from what I found from the doc but not 100% sure of this)

robinl39529461_4-1742996810794.png

 

- I also used the context data (in blue) to populate another field: prop60

robinl39529461_2-1742996746238.png

 

I see in my result in Adobe Analytics that the marketing is not always attributed the correct way:

robinl39529461_5-1742997119152.png

So, the link_tracking is the prop60 mapped above.
The marketing channel, even if the URL parameter mcing starts with sepa is not always linked to Search Paid.
To me, it should be the case because:

- this is the rule number 1 => priority on the other one

- the hit attribute 'Query string parameter' used the same input as the linck tracking (prop60) and so should be the same

 

Do you have any idea what can explain this difference?
Do I have to use a different field in the target destination field of my datastream than 'web.webPageDetails.URL' ?

Don't hesitate if my explanation in not clear enough.

Thanks in Advance

 

Robin

 



 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi, I received the following question of the Adobe support:

Hi Robin,

 

Thanks a lot for your patience. I was out-of-office yesterday, hence couldn't provide an update sooner.

 

I reviewed multiple user journeys to identify the reason for Marketing Channel Instance not being set, even when the Query String Parameter had the appropriate value.

 

A key behavior, that I also confirmed with the Product Engineering team, is that, when in the same visit, let's say, Hit 1 : Marketing Channel (va_closer_id) was Paid Search and Marketing Channel Detail (va_closer_detail) was sepa_goog_mass_pay_d_boostminorsgooglepmaxfrperformancemax. Now, if the consecutive hits, have the same va_closer_id and the same va_closer_detail, then in those cases, the Marketing channel will be considered to persist, i.e., Marketing Channel instances (va_instance_event) won't be incremented.


Now, among the visitor journeys I analyzed, here are a few of them - 

  • Notice that in the hit number '5' of the 2nd visit, i.e., the 6th record, the va_closer_id and the va_closer_detail are the same as in 1st hit of 2nd Visit, hence the va_instance_event was not incremented.
    robinl39529461_0-1743763350115.png 
  • Similarly, see the below user journey - 
    robinl39529461_1-1743763350117.png
    To conclude, this scenario is working as expected, and you may expect the marketing channel values to persist. From the implementation perspective, the Page URL and marketing channel rules are seem to be setup correctly.

 

Hope this is helpful. Please let me know if you have any questions or if you'd like to discuss this over a call.

 

It explains the logic and answers to my question.
Thanks for your help

Robin

View solution in original post

6 Replies

Avatar

Community Advisor

Have you made any recent changes to your marketing channel processing rules?  It's hard to tell but it looks like the sparkline on the organic search has dropped off recently.  In AA, updates to the rules aren't retroactive.

Avatar

Level 4

Hi Josh,
You are right: I took the wrong period.
I first forgot to add this mapping in my datastream:

robinl39529461_0-1743066000292.png

So the marketing processing rules was checking the hit attribute 'Query string parameter' that was empty and jump to the 2nd rule that doesn't check that field.

But after fixing this by updating the mapping, I have strange result:

So the same input (data.fullPageURL) is mapped to :
- web.webPageDetails.URL : it will feed the hit attribute 'Query string parameter' (without any filtering) in Analytics used by marketing the processing rules

- _experience.analytics.customDimensions.props.prop60 : it will extract the parameter mcing only (thanks to the function get_url_query_str(lower(get_url_decoded(data.fullPageURL)),"append")["mcing"]) and feed the prop60 called Link Tracking
So if an URL parameter is about mcing, both dimensions should be populated with this value.

What I see in Analytics is that the prop60 is populated but is not always giving a Marketing Channel. The calls receiving a marketing channel receive the correct value (in green) but not all of them receive a value. 

robinl39529461_1-1743066696835.png

I was expecting that the figure in yellow and in pink will be aligned.

Hope my explanation is not confusing.
Thanks in advance

Robin

 

 

Avatar

Community Advisor

Hi @robinl39529461  - the occurrences in yellow include persistence.  But when you filter for just instances (hits where the marketing channel is set vs. where it persisted), you've got a perfect match!  (The delta between the two would be the impact of persistence.)

Avatar

Level 4

The link tracking here is a prop (prop60 used in the datastream mapping), so there is no persistency on prop.
So I would have expect that yellow and pink will be aligned.
Does my assumption make sense ?  

Could it be that if the url contains specific character (like %20), the function used in the datastream mapping (get_url_query_str, get_url_decoded) doesn't work?

Robin

Avatar

Community Advisor

Ah, good point on that. Are you limiting your date range to after your rules were updated?  I'd try to use visits as a metric also to see how that compares.

Avatar

Correct answer by
Level 4

Hi, I received the following question of the Adobe support:

Hi Robin,

 

Thanks a lot for your patience. I was out-of-office yesterday, hence couldn't provide an update sooner.

 

I reviewed multiple user journeys to identify the reason for Marketing Channel Instance not being set, even when the Query String Parameter had the appropriate value.

 

A key behavior, that I also confirmed with the Product Engineering team, is that, when in the same visit, let's say, Hit 1 : Marketing Channel (va_closer_id) was Paid Search and Marketing Channel Detail (va_closer_detail) was sepa_goog_mass_pay_d_boostminorsgooglepmaxfrperformancemax. Now, if the consecutive hits, have the same va_closer_id and the same va_closer_detail, then in those cases, the Marketing channel will be considered to persist, i.e., Marketing Channel instances (va_instance_event) won't be incremented.


Now, among the visitor journeys I analyzed, here are a few of them - 

  • Notice that in the hit number '5' of the 2nd visit, i.e., the 6th record, the va_closer_id and the va_closer_detail are the same as in 1st hit of 2nd Visit, hence the va_instance_event was not incremented.
    robinl39529461_0-1743763350115.png 
  • Similarly, see the below user journey - 
    robinl39529461_1-1743763350117.png
    To conclude, this scenario is working as expected, and you may expect the marketing channel values to persist. From the implementation perspective, the Page URL and marketing channel rules are seem to be setup correctly.

 

Hope this is helpful. Please let me know if you have any questions or if you'd like to discuss this over a call.

 

It explains the logic and answers to my question.
Thanks for your help

Robin