In the Adobe Site Catalyst mapping how do I configure an event based on the search results data value
event6= keyword search successful
event7=keyword not found
If search_results =>1 then increment event 6
If search_results=0 then increment event 7
Can I do something like this in the mapping?
Indirectly. You could have a couple of set data value extensions where you create a new var, with a first set data value extension where 'search_status' is set to text 'not_found'. Then create a second extension with a condition of 'search results IS defined' AND 'search results DOES NOT EQUAL 0', and if all true, 'search_status' is set to text 'successful'. From there you should be able to key off of the value of 'search_status' to trigger your event incrementing.
It set-up this extensions however the "int_keyowrd_successful" is an adobe event not a evars or prop. So I want a counter to increment by 1 on the true statement. Will this work?
I created a data value extensions where:
set: int_keyword_successful(js) to text:1
search_results(udo) is greater than or equal to "1"
search_results(udo) is defined
Then- I would map int_keyword_successful(js) to my Adobe event 6.
So, if it equal one the counter would increment. Conceptually it sounds like it would work. However, I would normalled map my event in an event_type variabel where a page_name like search_results successful